Skip to content

Watch for new namespaces and create default NetworkPolicy for them

License

Notifications You must be signed in to change notification settings

smpio/kube-networkpolicy-ensurer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kube-networkpolicy-ensurer

This program watches for new namespaces and creates default NetworkPolicy for them. The policy allows incoming connections from pods of the same namespace:

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: default
spec:
  ingress:
  - from:
    - podSelector: {}
  podSelector: {}
  policyTypes:
  - Ingress

About

Watch for new namespaces and create default NetworkPolicy for them

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages