All Projects → postfinance → kubectl-ns

postfinance / kubectl-ns

Licence: MIT license
Simple kubectl plugin to display/switch namespaces

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to kubectl-ns

kubectl-plugin-ssh-jump
A kubectl plugin to access nodes or remote services using a SSH jump Pod
Stars: ✭ 117 (+485%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-gs
kubectl plugin helping with custom resources by Giant Swarm
Stars: ✭ 36 (+80%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-images
🕸 Show container images used in the cluster.
Stars: ✭ 153 (+665%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-skew
a simple kubectl plugin to make the "skew" visible
Stars: ✭ 18 (-10%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-tmux-logs
A kubectl plugin to display container logs within separate tmux panes
Stars: ✭ 19 (-5%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-extras
A collection of mini plugins for kubectl.
Stars: ✭ 109 (+445%)
Mutual labels:  kubectl, kubectl-plugins
KuiClientTemplate
Use this template to make your own custom graphical terminal, via the Kui Grahpical CLI Framework
Stars: ✭ 26 (+30%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-janitor
List Kubernetes objects in a problematic state
Stars: ✭ 48 (+140%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-ctx
Simple kubectl plugin to display/switch contexts
Stars: ✭ 36 (+80%)
Mutual labels:  kubectl, kubectl-plugins
Kubectx
Faster way to switch between clusters and namespaces in kubectl
Stars: ✭ 11,922 (+59510%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-external-forward
kubectl plugin to connect to external host via Envoy Proxy in Kubernetes cluster
Stars: ✭ 37 (+85%)
Mutual labels:  kubectl, kubectl-plugins
Kubectl Debug
Debug your pod by a new container with every troubleshooting tools pre-installed
Stars: ✭ 2,091 (+10355%)
Mutual labels:  kubectl, kubectl-plugins
kube-lineage
A CLI tool to display all dependencies or dependents of an object in a Kubernetes cluster.
Stars: ✭ 238 (+1090%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-iexec
Kubectl plugin to interactively exec into a pod
Stars: ✭ 102 (+410%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-secretdata
A kubectl plugin for viewing decoded Secret data with search flags.
Stars: ✭ 37 (+85%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-view-serviceaccount-kubeconfig-plugin
A kubectl plugin that show a kubeconfig to access the apiserver with a specified serviceaccount.
Stars: ✭ 33 (+65%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-whoami
This plugin gets the subject name using the effective kubeconfig
Stars: ✭ 74 (+270%)
Mutual labels:  kubectl, kubectl-plugins
kubectlsafe
Safe operations in kubectl with plugin kubectlsafe
Stars: ✭ 36 (+80%)
Mutual labels:  kubectl, kubectl-plugins
Krew
📦 Find and install kubectl plugins
Stars: ✭ 4,354 (+21670%)
Mutual labels:  kubectl, kubectl-plugins
Kubectl Tree
kubectl plugin to browse Kubernetes object hierarchies as a tree 🎄 (star the repo if you are using)
Stars: ✭ 1,962 (+9710%)
Mutual labels:  kubectl, kubectl-plugins

Build Status Release Software License Go Report Card

THIS PLUGIN IS ARCHIVED.

Please use kubectx instead.

kubectl ns plugin

Simple Plugin to display/change the current kube namespace with support for substring matching.

Build/Installation

Build from source

go version >= 1.13 with modules support enabled is required to build the plugin from source.

export GO111MODULES=on # optional if checked out outside of $GOPATH
go build

Installation

Pre-compiled statically linked binaries are available on the releases page.

Binary must be placed anywhere in $PATH named kubectl-ns with execute permissions. For further information, see the offical documentation on plugins here.

Compatibility

Known to work on Windows and Linux. Requires kubectl >= 1.12 (tested with versions >1.12). Supports the oidc, gcp and azure auth provider for authentication against the k8s api server.

Examples

For all the examples, assume your cluster has the following namespaces:

default
kube-system
kube-public
ingress-nginx
foo
bar
baz

display namespaces

Current namespace is displayed in a different color and last.

$ kubectl ns
default
kube-system
kube-public
ingress-nginx
foo
bar
baz

Substring matching can be used to display namespaces. For example if you are searching for a kube- namespace simply type:

$ kubectl ns kube-
kube-system
kube-public

change current namespace

You can switch the namespace by providing an exact name:

$ kubectl ns foo
namespace set to "foo"

But it's also possible to switch to the ingress-nginx namespace by typing a substring (as long as it is a unique name), for example:

$ kubectl ns ingress
namespace set to "ingress-nginx"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].