Skip to content

Component blocks pod access to common metadata ip address in different cloudproviders

License

Notifications You must be signed in to change notification settings

cisco-sso/networkpolicy-controller

 
 

Repository files navigation

networkpolicy-controller

This component blocks access to common metadata IP address used within cloud providers by forcing the following network policy into all namespaces except kube-system.

Example policy

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-all-except-metadata
spec:
  podSelector: {}
  egress:
  - to:
    - ipBlock:
        cidr: 0.0.0.0/0
        except: 
        - 169.254.169.254/32
  policyTypes:
  - Egress

Install

kubectl apply -f https://raw.githubusercontent.com/ElisaOyj/networkpolicy-controller/master/manifests/deploy.yaml

About

Component blocks pod access to common metadata ip address in different cloudproviders

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 75.1%
  • Makefile 16.9%
  • Shell 5.3%
  • Dockerfile 2.7%