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

Allow setting a custom kubeconfig username #793

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

kke
Copy link
Contributor

@kke kke commented Nov 18, 2024

Fixes #792

Allow setting the generated kubeconfig username using --user in k0sctl kubeconfig command. Alternatively the username can be set in k0sctl.yaml metadata.user. The cluster name can also be set using --cluster flag.

When using --kubeconfig-out in apply, the user can be set via --kubeconfig-user and the cluster name via --kubeconfig-cluster.

Example:

$ k0sctl kubeconfig --user example --cluster example-cluster > example-kubeconfig
$ kubeconfig --kubeconfig example-kubeconfig --user example --cluster example-cluster get nodes

@kke kke added the enhancement New feature or request label Nov 18, 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

Successfully merging this pull request may close these issues.

I want to change the user name of kubeconfig generated by k0sctl kubeconfig to any user name.
1 participant