istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/config/analysis/analyzers/testdata/destinationrule-compound-mutual-simple.yaml (about)

     1  # No caCertificates when mode is simple at destination level and MUTUAL at port level
     2  apiVersion: networking.istio.io/v1alpha3
     3  kind: DestinationRule
     4  metadata:
     5    name: db-mtls
     6  spec:
     7    host: mydbserver.prod.svc.cluster.local
     8    trafficPolicy:
     9      tls:
    10        mode: SIMPLE
    11        clientCertificate: /etc/certs/myclientcert.pem
    12        privateKey: /etc/certs/client_private_key.pem
    13      portLevelSettings:
    14        - port:
    15            number: 443
    16          tls:
    17            mode: MUTUAL
    18            clientCertificate: /etc/certs/myclientcert.pem
    19            privateKey: /etc/certs/client_private_key.pem
    20            sni: my-nginx.mesh-external.svc.cluster.local
    21