March 2020
Intermediate to advanced
626 pages
14h 45m
English
To enable STRICT mTLS at the namespace level, we can use Policy instead of MeshPolicy and define the namespace that it will be applied to. Let's get started:
# Script : 07-create-mtls-for-istio-lab-namespace.yamlapiVersion: authentication.istio.io/v1alpha1kind: Policymetadata: name: default namespace: istio-labspec: peers: - mtls: {}
$ kubectl -n istio-lab apply -f 07-create-mtls-for-istio-lab-namespace.yaml policy.authentication.istio.io/default created
Next, we will verify the TLS configuration.
Read now
Unlock full access