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

Use status socket to store and fetch k0s runtime configuration #1434

Open
trawler opened this issue Jan 11, 2022 · 3 comments
Open

Use status socket to store and fetch k0s runtime configuration #1434

trawler opened this issue Jan 11, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@trawler
Copy link
Contributor

trawler commented Jan 11, 2022

Is your feature request related to a problem? Please describe.

With the latest update to the config handling, and the introduction of the runtime config, it is possible (in certain edge cases) that the running configuration will change, whereas the static file under /run/k0s/k0s.yaml will not reflect that.

Describe the solution you would like

A further enhancement to this feature would be to completely abandon the saving of the file to a static location, and instead use the already available Status socket for fetching the running config.
We can also attach the k0s config command to this socket and add a k0s config show command to view the currently running configuration.

Describe alternatives you've considered

No response

Additional context

Depends on #1409

@trawler trawler added the enhancement New feature or request label Jan 11, 2022
@twz123
Copy link
Member

twz123 commented Jan 17, 2024

AFAICT /run/k0s/k0s.yaml is still a thing, although I'm not quite sure what problem it solves. Do you remember by chance @kke?

@twz123
Copy link
Member

twz123 commented Jan 17, 2024

/xref #3072

@kke
Copy link
Contributor

kke commented Jan 17, 2024

I think for overriding k0svars using values from the running instance instead of defaults, for example in k0s config status.

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

3 participants