Turn on strict mTLS
Require mutual TLS for all workloads in the 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 -Add the Istio sidecar to a deployment manifest by hand and apply it
-
istioctl dashboard kialiOpen the Kiali service mesh dashboard in the browser
-
istioctl dashboard jaegerOpen the Jaeger dashboard for distributed tracing
-
kubectl logs -l app=myapp -c istio-proxy | head -50Read Envoy access logs from the sidecar container
-
# In VirtualService spec.http[].fault.delayInject artificial delay to test resilience (in VirtualService)