Fix k3s_server_location only working on default

- K3s has some absolute paths set in various places which cannot be
  changed. Using a symbolic link was the easiest fix. This is nice for
  running K3S on SBC that must boot to SD but K3S data should be stored
  on a faster drive.
- Other changes are for making the site playbook replayable without
  resetting the cluster. Ideally you can rerun it to check existing
  nodes or to add new ones.

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Nicholas Malcolm
2023-02-02 12:57:02 -05:00
committed by Derek Nola
parent 7cc70ad609
commit 8484c015d6
4 changed files with 30 additions and 15 deletions

View File

@@ -28,7 +28,7 @@
- /run/k3s
- /var/lib/kubelet
- /run/netns
- /var/lib/rancher/k3s
- "{{ k3s_server_location }}"
loop_control:
loop_var: mounted_fs
@@ -42,6 +42,7 @@
- "{{ systemd_dir }}/k3s-agent.service"
- /etc/rancher/k3s
- /var/lib/kubelet
- /var/lib/rancher/k3s
- "{{ k3s_server_location }}"
- name: Systemd daemon reload