istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/integration/security/testdata/authz/mtls.yaml.tmpl (about)

     1  apiVersion: security.istio.io/v1beta1
     2  kind: PeerAuthentication
     3  metadata:
     4    name: {{ .To.ServiceName }}
     5  spec:
     6    selector:
     7      matchLabels:
     8        app: "{{ .To.ServiceName }}"
     9    mtls:
    10      mode: STRICT
    11  ---
    12  apiVersion: networking.istio.io/v1beta1
    13  kind: DestinationRule
    14  metadata:
    15    name: {{ .To.ServiceName }}
    16  spec:
    17    host: "{{ .To.ClusterLocalFQDN }}"
    18    trafficPolicy:
    19      tls:
    20        mode: ISTIO_MUTUAL