From e61c209cf75c11e88c5077770e02e8b4f0a379d4 Mon Sep 17 00:00:00 2001 From: Caleb <1561693+calebgasser@users.noreply.github.com> Date: Wed, 18 May 2022 17:55:56 -0500 Subject: [PATCH] Added node label for longhorn to provisioning. --- provision/ansible/inventory/group_vars/worker/k3s.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/provision/ansible/inventory/group_vars/worker/k3s.yml b/provision/ansible/inventory/group_vars/worker/k3s.yml index ce74f752..163336df 100644 --- a/provision/ansible/inventory/group_vars/worker/k3s.yml +++ b/provision/ansible/inventory/group_vars/worker/k3s.yml @@ -11,3 +11,8 @@ k3s_agent: kubelet-arg: # Allow k8s services to contain TCP and UDP on the same port - "feature-gates=MixedProtocolLBService=true" + # Add node-label for longhorn to create disks + # https://longhorn.io/docs/1.1.2/advanced-resources/default-disk-and-node-config/ + # CLI: kubectl label nodes k8s-worker01 node.longhorn.io/create-default-disk=true + node-label: + - "node.longhorn.io/create-default-disk=true"