From b231db641af6430cab9a1b91db97d17018cf4397 Mon Sep 17 00:00:00 2001 From: Adrien Reslinger Date: Wed, 9 Nov 2022 09:58:11 +0100 Subject: [PATCH] Update lognhorn deployment --- tasks/longhorn.yml | 17 ++++------------- templates/longhorn/longhorn-values.yaml.j2 | 4 ++-- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/tasks/longhorn.yml b/tasks/longhorn.yml index f263e1c..6e39f5f 100644 --- a/tasks/longhorn.yml +++ b/tasks/longhorn.yml @@ -27,18 +27,9 @@ namespace: "{{ storage_longhorn_namespace }}" value: "{{ item.value }}" with_items: - - { - name: "guaranteed-engine-manager-cpu", - value: "6" - } - - { - name: "guaranteed-replica-manager-cpu", - value: "6" - } - - { - name: "default-data-locality", - value: "best-effort" - } + - { name: "guaranteed-engine-manager-cpu", value: "6" } + - { name: "guaranteed-replica-manager-cpu", value: "6" } + - { name: "default-data-locality", value: "best-effort" } - name: Install longhorn Recurring Jobs kubernetes.core.k8s: @@ -46,7 +37,7 @@ context: "{{ my_context }}" apply: true namespace: "{{ storage_longhorn_namespace }}" - resource_definition: "{{ lookup('template', 'longhorn/longhorn/longhorn_recurringjob.yml.j2') | from_yaml }}" + resource_definition: "{{ lookup('template', 'longhorn/longhorn_recurringjob.yml.j2') | from_yaml }}" with_items: - { name: "snapshot", diff --git a/templates/longhorn/longhorn-values.yaml.j2 b/templates/longhorn/longhorn-values.yaml.j2 index a371494..bf0267a 100644 --- a/templates/longhorn/longhorn-values.yaml.j2 +++ b/templates/longhorn/longhorn-values.yaml.j2 @@ -7,11 +7,11 @@ persistence: jobList: '[ { "name":"snapshot", - "isGroup":true, + "isGroup":true }, { "name":"backup-daily", - "isGroup":true, + "isGroup":true } ]' defaultSettings: