mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
Update inventory/roles to keep K3s state on local storage and prevent iSCSI from managing /var/lib/rancher. Also add a single-host k3s install playbook, a systemd override template, and docs describing the installer ↔ Ansible boundary and slow-storage knobs. Co-authored-by: Junie <junie@jetbrains.com>
28 lines
909 B
YAML
28 lines
909 B
YAML
k3s_state: present # present|stopped|absent
|
|
k3s_version: "" # e.g. "v1.29.7+k3s1" or empty for latest
|
|
k3s_disable:
|
|
- local-storage
|
|
|
|
k3s_write_kubeconfig_mode: "0640"
|
|
k3s_kubeconfig_group: kubeadm
|
|
k3s_kubeconfig_users:
|
|
- pi
|
|
|
|
# K3s state storage
|
|
# `/var/lib/rancher` is treated as local host storage for all k3s nodes.
|
|
# (On `myrddin.prole.org` this is backed by a locally attached USB3 SSD; shared/iSCSI
|
|
# storage is reserved for other data paths such as `/prole/*`.)
|
|
k3s_rancher_mountpoint: /var/lib/rancher
|
|
k3s_rancher_storage_class: local
|
|
k3s_data_dir: "{{ k3s_rancher_mountpoint }}/k3s"
|
|
|
|
# Post-provisioning, persisted labels applied via kubectl (delegated to control-plane)
|
|
k3s_node_labels:
|
|
myrddin.prole.org:
|
|
prole.org/storage: fast
|
|
prole.org/ingress: primary
|
|
prole.org/stateful: "true"
|
|
merlin.prole.org:
|
|
prole.org/role: stateless
|
|
prole.org/storage: slow
|