question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for KUBECONFIG

See original GitHub issue

kubectl 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:open
  • Created 6 years ago
  • Reactions:10
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
damomurfcommented, Feb 22, 2018

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.

0reactions
b1xcommented, Jun 24, 2018

@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(

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found