美文网首页
Istio Routing

Istio Routing

作者: Rnben | 来源:发表于2018-12-26 23:24 被阅读0次

    Traffic Splitting

    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: split-95-5
    spec:
      hosts:
        - service-B
      http:
        - route:
          - destination:
              host: service-B
              subset: v1
            weight: 95
        - route:
          - destination:
              host: service-B
              subset: v2
            weight: 5
    

    Traffic Steering

    apiVersion: networking.istio.io/v1alpha3 kind: VirtualService
    metadata:
      name: route-rule-chrome-firefox
    spec:
      hosts:
        - service-B 
      http:
      - match:
        - headers:
            user-agent:
              regex: “*.Chrome.*”
        route:
        - destination:
            host: service-B
            subset: v1
      - match:
        - headers:
            user-agent:
              regex: “*.Firefox.*” 
        route:
        - destination: 
          host: service-B
          subset: v2
    

    Traffic Mirroring

    apiVersion: networking.istio.io/v1alpha3 kind: VirtualService
    metadata:
    name: route-rule-mirror
    spec:
      hosts:
        - service-B
      http:
      - route:
        - destination:
            host: service-B
            subset: v1
        mirror:
          host: service-B
          subset: v2
    

    Http Timeout

    
    

    Http Retry

    
    

    相关文章

      网友评论

          本文标题:Istio Routing

          本文链接:https://www.haomeiwen.com/subject/emhllqtx.html