Skip to content

Propose KUBECONFIG - #154

Merged
gilesknap merged 2 commits into
k8s-tutorialsfrom
propose-kubeconfig
Sep 2, 2024
Merged

gilesknap merged 2 commits into
k8s-tutorialsfrom
propose-kubeconfig

Conversation

@marcelldls

Copy link
Copy Markdown
Contributor

No description provided.

@gilesknap gilesknap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. That makes more sense. I guess K3S just has a different default for KUBECONFIG.

Please can you make this work for bash users too.

@marcelldls

Copy link
Copy Markdown
Contributor Author

Sorry I think the env var should have been exported. This was more to start a conversation about not reinstalling kubectl. I think the cleanest I have is

echo 'export KUBECONFIG=$HOME/.kube/config' >> $HOME/.profile
source $HOME/.profile

But if you open a new terminal you have to source again. Or log out and in I guess?

@gilesknap

Copy link
Copy Markdown
Member

Yeah that is the annoying thing about using .profile.

I'm OK with what you suggest above, plus 'log out for this to be set for all shells'. Or similar.

@marcelldls

Copy link
Copy Markdown
Contributor Author

@gilesknap Done

@gilesknap
gilesknap merged commit 4f011df into k8s-tutorials Sep 2, 2024
@gilesknap
gilesknap deleted the propose-kubeconfig branch March 29, 2025 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants