Skip to content

Instantly share code, notes, and snippets.

@dictvm
Created April 8, 2019 16:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dictvm/85a42c049b0ab72a38cc8ad5a921d64d to your computer and use it in GitHub Desktop.
Save dictvm/85a42c049b0ab72a38cc8ad5a921d64d to your computer and use it in GitHub Desktop.
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-cluster-autoscaler
namespace: kube-system
spec:
podSelector:
matchLabels:
app: cluster-autoscaler
policyTypes:
- Ingress
ingress:
- ports:
- port: 8085
protocol: TCP
- from:
- namespaceSelector:
matchLabels:
name: monitoring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment