k8senv icon indicating copy to clipboard operation
k8senv copied to clipboard

Why is this better than kubectl config use-context?

Open andremarianiello opened this issue 8 years ago • 3 comments
trafficstars

kubectl already has a way to set your current context (kubectl config use-context). Why would I use this instead?

andremarianiello avatar Aug 23 '17 13:08 andremarianiello

+1

mcronce avatar Aug 23 '17 21:08 mcronce

I don't think it was possible when I first wrote this utility. See e.g. https://github.com/kubernetes/kubernetes/issues/10735. It looks like kubectl config use-context does the trick now, though. The only drawback is that it doesn't provide a cue in the shell.

philipn avatar Aug 23 '17 22:08 philipn

@andremarianiello It may also be worthwhile to ask this of https://github.com/ahmetb/kubectx, as the maintainer is also on the Kubernetes team.

philipn avatar Aug 26 '17 00:08 philipn