Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Automatically remove Kubectl CAR #44

Closed
W73 opened this issue Jan 6, 2020 · 2 comments
Closed

Question: Automatically remove Kubectl CAR #44

W73 opened this issue Jan 6, 2020 · 2 comments
Labels

Comments

@W73
Copy link

W73 commented Jan 6, 2020

*** Not Issue ***
Hello, is it possible somehow indicate that i do not need Kubectl car, when i am not logged it cluster?
Or i need to turn Kubectl Car on/off when i start/finish use kubectl ?

Thank you

@jtyr
Copy link
Owner

jtyr commented Jan 7, 2020

The kubectl car is shown only if there is valid Kubernetes config. How I do is that I store the config in non-standard path or under non-standard filename. Then I activate it by exporting KUBECONFIG env var like this:

export KUBECONFIG='~/path/to/my/kube-prd.conf'

Once I finish working with the cluster, I just simply unset the variable:

unset KUBECONFIG

You can read this article do discover more tricks.

@jtyr jtyr closed this as completed Jan 7, 2020
@W73
Copy link
Author

W73 commented Jan 8, 2020

Thank you for great hints. I need to change my workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants