Support for KUBECONFIG
See original GitHub issuekubectl
uses the KUBECONFIG environment variable. It would be great if kube-shell would honor it as well.
About KUBECONFIG: https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#set-the-kubeconfig-environment-variable
Current behavior:
~> kube-shell
Kube-shell uses ~/.kube/config for server side completion. Could not find ~/.kube/config. Server side completion functionality may not work.
kube-shell>
Expected behavior:
kube-shell follows path(s) as defined in $KUBECONFIG.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Organizing Cluster Access Using kubeconfig Files - Kubernetes
Use kubeconfig files to organize information about clusters, users, namespaces, and authentication mechanisms. The kubectl command-line tool ...
Read more >Creating or updating a kubeconfig file for an Amazon EKS ...
Learn how to create or update a kubeconfig file for an Amazon EKS cluster. ... For all available options, run the aws eks...
Read more >Kubeconfig File Explained With Practical Examples
The service account name will be the user name in the Kubeconfig. Here I am creating the service account in the kube-system as...
Read more >Read Only Kubeconfig - Documentation
To connect to your Kubernetes clusters you will need to create or obtain a copy of your · We recommend creating a new...
Read more >Access a Cluster with Kubectl and kubeconfig - Rancher Docs
A kubeconfig file is used to configure access to Kubernetes. ... For help installing kubectl, refer to the official Kubernetes documentation ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
kubectl can actually function perfectly well if the value of KUBECONFIG is also a list of kubectl config files, not necessarily just one. It would be ideal if this tool could support that use case too.
@murali-reddy, I am sorry but I can’t switch context when I use variable KUBECONFIG, like: export KUBECONFIG=${HOME}/.kube/first:${HOME}/.kube/second It always on first(