-
-
Notifications
You must be signed in to change notification settings - Fork 466
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
[FEATURE]: One kubeconfig.yaml for more than one cluster #90
Comments
Hey @giminni , thanks for submitting this feature request. |
@iwilltry42 your proposal sounds good |
If it helps someone here is my shell based workaround: https://gist.github.com/tanelmae/b0dc522ab3984f290b0b25766128f61a
|
... already merges config files. Thus this one-liner would have worked with kubectx:
(ie, the default config, plus all k3d generated ones, colon separated) ... if k3d did not re-use the name "default" in the config files, regardless of the configured cluster name. I'm quite new to Kubernetes, but my understanding is that if k3d changed the generated config-files from using "default", to the asked-for cluster name. It would perhaps solve the issue and the one-liner above would work for kubectx? |
@kristoferlundgren , changing the name from It's on the list already 👍 |
@iwilltry42 , Thanks for acknowledging that my idea is feasible! |
@kristoferlundgren , I just pushed the change to master (469b56c) and so it will land in the next release 👍 |
@iwilltry42 Hero of the day! |
Landed in k3d v3 (see e.g. #226) |
Currently if I create two k3d cluster with different names, k3d creates two kubeconfig.yaml files under two different directories.
I wanna have one kubeconfig.yaml file and use kubectx and kubens to switch between them easily.
Implementation perhaps with:
k3d create -a1 6550 -n1 cluster-prod -w1 5 -a2 6551 -n2 cluster-dev -w2 1 --image rancher/k3s:v0.7.0-rc4
The text was updated successfully, but these errors were encountered: