How To Install Kubens In Debian, Ubuntu, Kali And MacOS?

How To Install Kubens In Debian, Ubuntu, Kali And MacOS?

kubens

Utility to switch between Kubernetes namespaces.

Maintainer: ChangZhuo Chen (u9673u660cu502c)



Section: devel

Install kubens

  • Debian apt-get install kubectx Click to copy
  • Ubuntu apt-get install kubectx Click to copy
  • Kali Linux apt-get install kubectx Click to copy
  • macOS brew install kubectx Click to copy

Utility to switch between Kubernetes namespaces.

How to use kubens?

Below are few example commands for kubens that you can use in the terminal.

List the namespaces:
kubensClick to copy
Change the active namespace:
kubens nameClick to copy
Switch to the previous namespace:
kubens -Click to copy
Installation of latest kubens command is available for Debian, Ubuntu, Kali and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.