k0s icon indicating copy to clipboard operation
k0s copied to clipboard

Use status socket to store and fetch k0s runtime configuration

Open trawler opened this issue 3 years ago • 3 comments

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 avatar Jan 11 '22 20:01 trawler

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 avatar Jan 17 '24 12:01 twz123

/xref #3072

twz123 avatar Jan 17 '24 12:01 twz123

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

kke avatar Jan 17 '24 13:01 kke