Skip to content

chore: update the default --k0s config template#1028

Closed
shinebayar-g wants to merge 1 commit intok0sproject:mainfrom
shinebayar-g:update-default-k0s-config-template
Closed

chore: update the default --k0s config template#1028
shinebayar-g wants to merge 1 commit intok0sproject:mainfrom
shinebayar-g:update-default-k0s-config-template

Conversation

@shinebayar-g
Copy link
Copy Markdown

based on the latest k0s config create command output.

Initially I was only going to fix the kind: ClusterConfig, then I noticed further discrepancies like podSecurityPolicy etc. So I just updated the entire thing based on the latest k0s config create output. I assume that was the original intention behind the k0sctl init --k0s command.

based on the latest `k0s config create` command output

Signed-off-by: Shinebayar G <3091558+shinebayar-g@users.noreply.github.com>
@shinebayar-g
Copy link
Copy Markdown
Author

Bump 👀

Comment thread cmd/init.go
spec:
api:
port: 6443
address: 192.168.5.15
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are some addresses that are added by k0s to k0s config create output that depend on the system it was run on and should not be hardcoded here

Comment thread cmd/init.go
Comment on lines +33 to +35
sans:
- 192.168.5.15
- fe80::5055:55ff:febb:c314
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These also

Comment thread cmd/init.go
ca:
certificatesExpireAfter: 8760h0m0s
expiresAfter: 87600h0m0s
peerAddress: 192.168.5.15
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And this

@shinebayar-g shinebayar-g deleted the update-default-k0s-config-template branch March 23, 2026 04:22
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