Skip to content

ccronca/kube-ns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kube-ns

Configure Kubernetes resources, such as network policies, on creating or updating namespaces through a custom Kubernetes controller

Usage

TBC

Install

Local Installation

Using go package installer:

# 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

Configure

TBC

Build

Using go

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

Todo

  • Quota configuration

ACKNOWLEDGEMENTS

Most of the code from this project comes from kube-watch project

About

Configure default network policies on namespaces through a custom Kubernetes controller

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published