kairos-io / kairos

:penguin: The immutable Linux meta-distribution for edge Kubernetes.
https://kairos.io
Apache License 2.0
1.09k stars 97 forks source link

merge k3s and k3s-agent config blocks #53

Open mudler opened 2 years ago

mudler commented 2 years ago

Currently the k3s and k3s-agent are two separated blocks, which makes the configuration cumbersome and less intuitive.

The proposal is to switch away from two separate blocks, and streamline only one block that can be used for both.

For example, consider the current status quo:

k3s:
  args: ..
k3s-agent:
  args: ...

we could switch away to something more simple as:

k3s:
  args: ..
  server: true

So, instead of laying down both systemd settings, we could also generate them in runtime with the appropriate service, allowing the user full customization of how the k3s bins should run.

Action items

jimmykarily commented 5 months ago

What if the user wants to use the same config both for server and agents? They wouldn't be able to define the k3s block twice.