mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-10-23 20:22:03 +02:00
Fix master node taints in multi node installs (#93)
* Taint master nodes if more than one node * Kick off fork workflow tests Co-authored-by: Techno Tim <timothystewart6@gmail.com>
This commit is contained in:
1 parent
f1c2f3b7dd
commit
4acbe91b6c
5 files changed
+9
-2
No files matched your search
@@ -64,7 +64,8 @@
|
||||
cmd: "systemd-run -p RestartSec=2 \
|
||||
-p Restart=on-failure \
|
||||
--unit=k3s-init \
|
||||
k3s server {{ server_init_args }}"
|
||||
k3s server {{ server_init_args }} \
|
||||
{{ '--node-taint CriticalAddonsOnly=true:NoExecute' if k3s_single_node|bool == false else ''}}"
|
||||
creates: "{{ systemd_dir }}/k3s.service"
|
||||
args:
|
||||
warn: false # The ansible systemd module does not support transient units
|
||||
|
||||
Reference in new issue
Block a user