diff --git a/ansible/arcodange/factory/playbooks/system/k3s_config.yml b/ansible/arcodange/factory/playbooks/system/k3s_config.yml index ddcc98a..6ecb7e1 100644 --- a/ansible/arcodange/factory/playbooks/system/k3s_config.yml +++ b/ansible/arcodange/factory/playbooks/system/k3s_config.yml @@ -20,7 +20,12 @@ hosts: server tasks: + # Tag `longhorn` : rejouer CETTE tâche seule (`--tags longhorn`). + # ⚠ Sans tag, ce playbook exécute aussi « redeploy traefik » sur localhost, + # qui SUPPRIME le Deployment traefik dans le contexte kubectl COURANT — + # qui n'est pas forcément le homelab. - name: setup longhorn for volumes https://docs.k3s.io/helm + tags: [longhorn] become: true ansible.builtin.copy: dest: /var/lib/rancher/k3s/server/manifests/longhorn-install.yaml @@ -45,6 +50,17 @@ valuesContent: |- defaultSettings: defaultDataPath: /mnt/arcodange/longhorn + # 8 s (défaut) → 20 s — incident arcodange-org/tools#49 et #52. + # Doc v1.9.1 : « The time in seconds a v1 engine will wait for a + # response from a replica before marking it as failed. Values + # between 8 and 30 are allowed. » Le DERNIER réplica n'est + # déclaré mort qu'au double (40 s), qui doit rester sous le + # délai SCSI des disques Longhorn (60 s, relevé sur les 3 Pi) : + # 30 s (60 s) le toucherait. Prix : une vraie panne de réplica + # met jusqu'à 20 s (40 s pour le dernier) à être constatée, + # écritures suspendues pendant ce temps. Ne vaut que pour les + # moteurs démarrés APRÈS (drapeau `--engine-replica-timeout`). + engineReplicaTimeout: 20 vars: longhorn_helm_values: {} # https://github.com/longhorn/longhorn/blob/master/chart/values.yaml