Enable mTLS (strict)
Enforce strict mutual TLS for all workloads in namespace
kubectl apply -f - <<EOF
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: default
namespace: default
spec:
mtls:
mode: STRICT
EOF
- tool
- istio19 commands
More istio commands
-
istioctl kube-inject -f deployment.yaml | kubectl apply -f -Manually inject Istio sidecar into a deployment manifest
-
istioctl dashboard kialiOpen Kiali service mesh dashboard in browser
-
istioctl dashboard jaegerOpen Jaeger distributed tracing dashboard
-
kubectl logs -l app=myapp -c istio-proxy | head -50View Envoy access logs from the sidecar container
-
# In VirtualService spec.http[].fault.delayInject artificial delay to test resilience (in VirtualService)