kube-ns

command module
v0.0.0-...-507e24d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL