Skip to content

Instantly share code, notes, and snippets.

@joshrosso
Created August 24, 2017 21:31
Show Gist options
  • Select an option

  • Save joshrosso/176df4fcc4d731c0b9c46295ad3ae595 to your computer and use it in GitHub Desktop.

Select an option

Save joshrosso/176df4fcc4d731c0b9c46295ad3ae595 to your computer and use it in GitHub Desktop.
apiVersion: "alpha.projectcalico.org/v1"
kind: SystemNetworkPolicy
metadata:
name: allow-ingress-in-namespace
namespace: kube-system
spec:
order: 0
selector: calico/k8s_ns == 'policy-demo'
ingress:
- action: allow
protocol: tcp
source:
selector: calico/k8s_ns == 'policy-demo'
destination:
selector: calico/k8s_ns == 'policy-demo'
ports: [80]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment