services.k3s.role

NixOS option

Whether k3s should run as a server or agent. If it’s a server: By default it also runs workloads as an agent. Starts by default as a standalone server using an embedded sqlite datastore. Configure clusterInit = true to switch over to embedded etcd datastore and enable HA mode. Configure serverAddr to join an already-initialized HA cluster. If it’s an agent: serverAddr is required.

type: one of "server", "agent"
Default
"server"
declared in: nixos/modules/services/cluster/rancher/default.nixView source on NixOS/nixpkgs →