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

[FEATURE] create cluster that will use identical kubeconfig credentials as cluster it replaces #1392

Open
jogomu opened this issue Jan 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jogomu
Copy link

jogomu commented Jan 12, 2024

Is your feature request related to a problem or a Pull Request

#1122 - wants to specify the name of a kubeconfig context on creation, which for subsequent creations would be rendered unnecessary ... for initial creation this ticket still applies
#323 - wants to update a file with the new kubeconfig, which would be rendered unnecessary if the old one could be re-used

Scope of your request

  • a new flag for a command (e.g. k3d cluster create --kubeconfig-reuse [FILE:]CONTEXT)?

Describe the solution you'd like

When creating a development cluster with k3d often we will expose the cluster to other users via --api-port=some-non-localhost:some-port and these users have to jump through a hoop of some sort to obtain the kubeconfig.

I suggest that the creation of a new cluster use the context from an existing (or the default) kubeconfig so that the replacement cluster will be accessible using the exact same credentials. This way anyone who was accessing the old incarnation of the cluster will be unaffected when the cluster is re-created.

Devil's Advocate: The old and new clusters are not "the same cluster" so why pretend that they are? Answer: convenience as "the same"-purposed dev cluster may come and go repeatedly as the cluster config is tweaked via recreation instead of via nip/tuck of an existing cluster that might be harder to maintain.

Describe alternatives you've considered

Accept that there will be new kubeconfig credentials whenever "the same" cluster is re-created from scratch and ask users to pull this new config and manage re-merging it with their own kubeconfig each and every time.

@jogomu jogomu added the enhancement New feature or request label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant