istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/testdata/config/destination-rule-all.yaml (about)

     1  # Attempt to use all possible fields in DestinationRule
     2  apiVersion: networking.istio.io/v1alpha3
     3  kind: ServiceEntry
     4  metadata:
     5    name: destall
     6    namespace: testns
     7  spec:
     8     hosts:
     9     - destall.default.svc.cluster.local
    10     ports:
    11     - number: 81
    12       name: http
    13       protocol: HTTP
    14     resolution: STATIC
    15     endpoints:
    16      - address: 127.0.0.2
    17        ports:
    18          http: 7072
    19  ---
    20  apiVersion: networking.istio.io/v1alpha3
    21  kind: DestinationRule
    22  metadata:
    23    name: destall
    24    namespace: testns
    25  spec:
    26    # DNS name, prefix wildcard, short name relative to context
    27    # IP or CIDR only for services in gateways
    28    host: destall.default.svc.cluster.local
    29    trafficPolicy:
    30      loadBalancer:
    31        simple: ROUND_ROBIN
    32      connectionPool:
    33        tcp:
    34          maxConnections: 99
    35          connectTimeout: 6s
    36        http:
    37          http2MaxRequests: 33
    38          maxRequestsPerConnection: 65
    39          maxRetries: 4
    40          http1MaxPendingRequests: 14
    41      outlierDetection:
    42          interval: 8ms
    43          baseEjectionTime: 1m
    44          maxEjectionPercent: 11
    45      tls:
    46        mode: DISABLE
    47    subsets:
    48      - name: v1
    49        labels:
    50          version: v1
    51      - name: v2
    52        labels:
    53          version: v2
    54        trafficPolicy:
    55          loadBalancer:
    56            consistentHash:
    57              httpCookie:
    58                name: Cookie
    59                ttl: 30s
    60              minimumRingSize: 42
    61  
    62  ---