Configuration
Configuration
Section titled “Configuration”The config file
Section titled “The config file”K0s reads its config from the path passed to -c at install time, or generates defaults if none is provided. The default location is /etc/k0s/k0s.yaml.
Generate the default config:
k0s config create > k0s.yamlKey sections:
spec.api: API server bind address and portspec.storage: etcd or kine (SQLite/MySQL/Postgres) backendspec.network: CNI provider, pod CIDR, service CIDRspec.extensions.helm: Helm chart extensions k0s deploys automaticallyspec.workerProfiles: kubelet configuration overrides
Partial configs work. K0s merges your file with its defaults at startup.
Data directory
Section titled “Data directory”K0s stores all runtime data in /var/lib/k0s/. This includes etcd data, kubelet state, containerd images, and certificates. Back up this directory if you need cluster recovery.