Skip to content

Instantly share code, notes, and snippets.

@fai555
Created May 12, 2020 00:38
Show Gist options
  • Select an option

  • Save fai555/2e31d743c29552ba2d459eb0ee510e75 to your computer and use it in GitHub Desktop.

Select an option

Save fai555/2e31d743c29552ba2d459eb0ee510e75 to your computer and use it in GitHub Desktop.
kubectl apply -f - <<EOF
apiVersion: "security.istio.io/v1beta1"
kind: "AuthorizationPolicy"
metadata:
name: "frontend-ingress"
namespace: istio-system
spec:
selector:
matchLabels:
istio: ingressgateway
action: DENY
rules:
- from:
- source:
notRequestPrincipals: ["*"]
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment