You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
k0s now supports a full featured templating mechanism to write the systemd service file. Recommend adoption of up stream native systemd service file creation strategy.
root@k0s:~# k0s install --help
Helper command for setting up k0s on a brand-new system. Must be run as root (or with sudo)
Usage:
k0s install [flags]
Flags:
-h, --help help for install
--role string node role (possible values: server or worker. In a single-node setup, a worker role should be used) (default "server")
Global Flags:
-c, --config string config file (default: ./k0s.yaml)
--data-dir string Data Directory for k0s (default: /var/lib/k0s). DO NOT CHANGE for an existing setup, things will break!
-d, --debug Debug logging (default: false)
-l, --logging stringToString Logging Levels for the different components
The text was updated successfully, but these errors were encountered:
Let's do this. This will be great because we'll have the system unit file from k0s as a single source of truth. From what I see in the code of the k0s install command, it also works with workers. We can pass a path to a token file as an argument.
Update: Creating systemd services for worker nodes is not yet implemented in the install command but is sure to come. We can implement it once the install command has matured a bit more.
@usrbinkat The k0s install command now supports adding workers. I've updated the playbook to use the command to create services for controller and worker nodes. Feel free to look over it. I willl create a release ones the final version of k0s-v0.10.0 is available 😃
Enhancement:
k0s now supports a full featured templating mechanism to write the systemd service file. Recommend adoption of up stream native systemd service file creation strategy.
Relevant code:
Usage:
The text was updated successfully, but these errors were encountered: