Is there a way to remove kubernetes cluster contexts from kubectx? Or can this only be done by manually removing them from kubeconfig?
Asked
Active
Viewed 1,241 times
0
-
UPDATE: it looks like this is a work in progress for kubectx? https://github.com/ahmetb/kubectx/issues/23 – Wunderbread Aug 24 '20 at 21:45
1 Answers
5
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
- 5,556
- 1
- 28
- 42