Created
February 6, 2017 19:21
-
-
Save eparis/4b2d9f0c8f4ab9b916748127a8246887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: NetworkPolicy | |
metadata: | |
name: test-network-policy | |
namespace: default | |
spec: | |
podSelector: | |
matchLabels: | |
role: db | |
ingress: | |
- from: | |
- podSelector: | |
matchLabels: | |
role: frontend | |
ports: | |
- protocol: tcp | |
port: 6379 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment