Lens: read kubeconfig from env KUBECONFIG

Created on 17 Jun 2020  路  3Comments  路  Source: lensapp/lens

I have multiple kubeconfig in my computer, so I move them into a dir to manage them. not the default ~/.kube/config

~/.kube/cluster_config/xxx_cluster.yaml

and set env for them to combine

export KUBECONFIG=$KUBECONFIG:$HOME/.kube/cluster_config/xxx_1.yaml
export KUBECONFIG=$KUBECONFIG:$HOME/.kube/cluster_config/xxx_2.yaml
export KUBECONFIG=$KUBECONFIG:$HOME/.kube/cluster_config/xxx_3.yaml

I can not found those kubeconfig in lens, the select option is empty. and there is not way to set env path for lens. some of my cluster's ip often change, i don't want manually added cluster because it seems can not change API Address after you add a cluster

enhancement

Most helpful comment

We're working on to fix this at #466. It's quite a big and deep refactoring but hopefully we'll be able to push this to 3.6 series.

All 3 comments

I have a similar issue I manage several different clusters using different kubeconfig files. I would love to be able to specify a custom kubeconfig file when adding a cluster. In my case, the custom option would be inconvenient because the authentication credentials in the kubeconfig files expire daily and must be replaced.

We're working on to fix this at #466. It's quite a big and deep refactoring but hopefully we'll be able to push this to 3.6 series.

With 3.6.0 you can select kubeconfig files from the local filesystem. You can test this feature already with 3.6.0 release candidate.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fjudith picture fjudith  路  4Comments

bhechinger picture bhechinger  路  6Comments

spyro2000 picture spyro2000  路  3Comments

aaronsssya picture aaronsssya  路  4Comments

jtackaberry picture jtackaberry  路  6Comments