Skip to content

Instantly share code, notes, and snippets.

@chechuironman
Created August 19, 2020 10:43
Show Gist options
  • Save chechuironman/2ac105299397fe8b7a3f380f35db79f8 to your computer and use it in GitHub Desktop.
Save chechuironman/2ac105299397fe8b7a3f380f35db79f8 to your computer and use it in GitHub Desktop.
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: allow-apigw-auth
spec:
selector:
matchLabels:
app: auth
rules:
- from:
- source:
principals: ["cluster.local/ns/cloud-lab/sa/apigw"]
to:
- operation:
ports: ["3000"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment