You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check PeerAuthentication
kubectl get peerauthentication -n crimson
kubectl describe peerauthentication mtls-space -n crimson
# Verify it has the correct selector
kubectl get peerauthentication mtls-space -n crimson -o jsonpath='{.spec.selector.matchLabels}'
Testing
# Check that pods with app=space label exist and have sidecars
kubectl get pods -n crimson -l app=space
# Verify mTLS is enforced (communication from pod without sidecar should fail)# This PeerAuthentication only affects pods with app=space label
kubectl exec -n crimson sleep-crimson -- curl -sS http://space.crimson.svc.cluster.local
# Expected: Should work if sleep pod has sidecar, fail if it doesn't