Skip to content

kube-ns-current

Get or set the current namespace in kubeconfig

Get or set the current namespace in kubeconfig

Usage:

Get or set the current namespace in kubeconfig

Terminal window
kube-ns-current [namespace name]

If namespace name is

  • not empty, set the current namespace to this value
  • otherwise, get the current namespace