Skip to content

Instantly share code, notes, and snippets.

@SaifRehman
Created December 21, 2018 01:22
Show Gist options
  • Save SaifRehman/abf02281581e58a4606075c15c731396 to your computer and use it in GitHub Desktop.
Save SaifRehman/abf02281581e58a4606075c15c731396 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
name: bookingsvcpolicy
namespace: default
spec:
ingress:
- ports:
- protocol: TCP
port: 3000
- from:
- podSelector:
matchLabels:
istio: ingress
podSelector:
matchLabels:
app: bookingsvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment