Configure Kubernetes resources, such as network policies, on creating or updating namespaces through a custom Kubernetes controller
TBC
# Download and install kubens
$ go get -u github.com/camilocot/kube-ns
# Enable default network policy creation
$ kube-ns config add netpol --enabled
# start kubens server
$ kube-ns
INFO[0000] Starting kubens controller
INFO[0000] Processing namespace default added
INFO[0000] Processing namespace kube-public added
INFO[0000] Processing namespace kube-node-lease added
INFO[0000] Processing namespace kube-system added
INFO[0000] kubens controller synced and ready
TBC
Clone the repository anywhere:
git clone https://github.com/camilocot/kube-ns.git
cd kube-ns
go build
or
You can also use the Makefile directly:
make build
- Quota configuration
Most of the code from this project comes from kube-watch project