From df9752542a51ae515567020b66f1bba8315fa009 Mon Sep 17 00:00:00 2001 From: Tiago Castro Date: Thu, 17 Feb 2022 09:57:28 +0000 Subject: [PATCH] chore: update charts to add 2Gi as a minimum hugepages Rather than adding 1Gi extra just set 2Gi as the minimum. --- chart/templates/mayastor-daemonset.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/templates/mayastor-daemonset.yaml b/chart/templates/mayastor-daemonset.yaml index f4d84db89..a946727ae 100644 --- a/chart/templates/mayastor-daemonset.yaml +++ b/chart/templates/mayastor-daemonset.yaml @@ -80,11 +80,11 @@ spec: limits: cpu: "{{ .Values.mayastorCpuCount }}" memory: "1Gi" - hugepages-2Mi: "{{ add .Values.mayastorHugePagesGiB 1 }}Gi" + hugepages-2Mi: "{{ max .Values.mayastorHugePagesGiB 2 }}Gi" requests: cpu: "{{ .Values.mayastorCpuCount }}" memory: "1Gi" - hugepages-2Mi: "{{ add .Values.mayastorHugePagesGiB 1 }}Gi" + hugepages-2Mi: "{{ max .Values.mayastorHugePagesGiB 2 }}Gi" ports: - containerPort: 10124 protocol: TCP