Skip to content

Instantly share code, notes, and snippets.

@eparis
Created February 6, 2017 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eparis/192361ece51256b663ecfc6c48c3099b to your computer and use it in GitHub Desktop.
Save eparis/192361ece51256b663ecfc6c48c3099b to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
name: test-network-policy
namespace: default
spec:
podSelector:
matchLabels:
role: db
ingress:
- ports:
- protocol: tcp
port: 6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment