Remove kubernetes cluster information from kubectx workflow

8/24/2020

Is there a way to remove kubernetes cluster contexts from kubectx? Or can this only be done by manually removing them from kubeconfig?

-- Wunderbread
kubeconfig
kubectl
kubernetes

1 Answer

8/24/2020

There is a "delete" command for kubectx. You can see the kubectx help with kubectx --help

For reference, the syntax is

kubectx -d <NAME> [<NAME...>]

eg, kubectx -d followed by one or more Kube context names.

-- Swiss
Source: StackOverflow