Google Kubernetes Engine - 'kubens' command not found error

1/15/2020

According to this blog, the kubens command is used to show all the available namespaces in GCP's GKE, but when I tried using this command, and after connecting to the cluster it says:

command not found

Why am I getting this error?

-- Yash Saini
google-cloud-platform
google-kubernetes-engine
kubernetes

1 Answer

1/15/2020

First you have to install kubens in your machine. Go through the below link for installation.

https://github.com/ahmetb/kubectx

-- Afnan Ashraf
Source: StackOverflow