Skip to content

Conversation

@s3rj1k
Copy link
Contributor

@s3rj1k s3rj1k commented Nov 21, 2025

Adds two new flags to improve k0s installation and token management for both worker and controller:

  • --start: Automatically starts the k0s service immediately after installation
  • --token-env: Allows specifying the join token via an environment variable name instead of passing it via file

Example Usage

Install and start controller with token from environment

export K0S_TOKEN="your-token-here"
k0s install controller --token-env K0S_TOKEN --start

Install and start worker with token from environment

k0s install worker --token-env K0S_TOKEN --start

@s3rj1k s3rj1k force-pushed the token-advanced branch 6 times, most recently from 8801e75 to c3db446 Compare November 21, 2025 16:04
@s3rj1k s3rj1k marked this pull request as ready for review November 21, 2025 16:41
@s3rj1k s3rj1k requested review from a team as code owners November 21, 2025 16:41
@s3rj1k s3rj1k force-pushed the token-advanced branch 2 times, most recently from c3db446 to 716b3d0 Compare November 21, 2025 16:51
@github-actions
Copy link
Contributor

This pull request has merge conflicts that need to be resolved.

@s3rj1k s3rj1k changed the title WiP: Token advanced Add ability to use ENVIRON for passing bootstrap token Nov 21, 2025
@s3rj1k s3rj1k changed the title Add ability to use ENVIRON for passing bootstrap token Add ability to use ENVIRON for passing bootstrap token Nov 21, 2025
@twz123
Copy link
Member

twz123 commented Nov 24, 2025

Can we split this up into two PRs, one for the start flag, and the other one for the environment var? /cc #5253

@s3rj1k
Copy link
Contributor Author

s3rj1k commented Nov 24, 2025

Can we split this up into two PRs, one for the start flag, and the other one for the environment var? /cc #5253

Probably, but I need both to be in binary at same time

@jnummelin
Copy link
Member

Let's have these two things as separate PRs, and issues for them, so we can properly handle those as separate as they really are separate

@s3rj1k
Copy link
Contributor Author

s3rj1k commented Nov 24, 2025

Let's have these two things as separate PRs, and issues for them, so we can properly handle those as separate as they really are separate

RN I still need this PR to test things, when I will finish testing related work against this, I'll prepare 2 separate PRs and move this one into Draft

@s3rj1k
Copy link
Contributor Author

s3rj1k commented Dec 1, 2025

I've extracted --start feature into separate PR #6753

and --token-env into #6755

@twz123 twz123 marked this pull request as draft December 2, 2025 07:29
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.

3 participants