From 28d946cae5ae273d8cefd7c60b27aa8333c1cead Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Sun, 13 Oct 2024 21:49:10 +0200 Subject: [PATCH] Add noexecute taint on longhorn Signed-off-by: Tuan-Dat Tran --- roles/k3s_storage/tasks/installation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/k3s_storage/tasks/installation.yml b/roles/k3s_storage/tasks/installation.yml index 5407071..40beb1c 100644 --- a/roles/k3s_storage/tasks/installation.yml +++ b/roles/k3s_storage/tasks/installation.yml @@ -15,6 +15,7 @@ when: not k3s_status.stat.exists ansible.builtin.command: | /tmp/k3s_install.sh \ + --node-taint CriticalAddonsOnly=true:NoExecute \ --node-label longhorn=true environment: K3S_URL: "https://{{ k3s.loadbalancer.ip }}:{{ k3s.loadbalancer.default_port }}"