Home > OS >  how to change kubectl version in lens?
how to change kubectl version in lens?

Time:10-12

First i installed lens on my mac, when i try to shell one of the pods, there's message said that i dont have any kubectl installed, so i install kubectl and it works properly.

Now i try to change configmaps but it shows an error "kubectl/1.18.20/kubectl not found" when i check the kubectl folder there's 2 kubectl version 1.18.20 and 1.21.

1.21 is the one that i install before.

how can i move kubectl version that has define in lens (1.18.20) and change it to 1.21 ?

note: Lens: 5.2.0-latest.20210908.1 Electron: 12.0.17 Chrome: 89.0.4389.128 Node: 14.16.0 © 2021 Mirantis, Inc.

--Thanks before, sorry for bad english

CodePudding user response:

You can set kubectl path at File -> Preference -> Kubernetes -> PATH TO KUBECTL BINARY. Or you can also check "Download kubectl binaries matching the Kubernetes cluster version", this way Lens will use the same version as your target cluster.

By the way, you should use latest v5.2.5.

  • Related