From c094b10007f23fadc2abb5fe8dc675c30ce9e5ec Mon Sep 17 00:00:00 2001 From: Thibault Cohen <47721+titilambert@users.noreply.github.com> Date: Thu, 22 Jun 2023 21:46:36 -0400 Subject: [PATCH 1/3] Add priorityclassname for influxdb2 --- charts/influxdb2/templates/statefulset.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/influxdb2/templates/statefulset.yaml b/charts/influxdb2/templates/statefulset.yaml index a18d7a20..215213dc 100644 --- a/charts/influxdb2/templates/statefulset.yaml +++ b/charts/influxdb2/templates/statefulset.yaml @@ -51,6 +51,9 @@ spec: {{- end}} {{- end }} serviceAccountName: {{ include "influxdb.serviceAccountName" . }} +{{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName | quote }} +{{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" From 70758b0b8e34cb46f9e0bf282fe778ef4fc61c1f Mon Sep 17 00:00:00 2001 From: Thibault Cohen <47721+titilambert@users.noreply.github.com> Date: Thu, 22 Jun 2023 21:47:19 -0400 Subject: [PATCH 2/3] Update values.yaml --- charts/influxdb2/values.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/influxdb2/values.yaml b/charts/influxdb2/values.yaml index 1fb111f4..f546383b 100644 --- a/charts/influxdb2/values.yaml +++ b/charts/influxdb2/values.yaml @@ -163,7 +163,7 @@ service: annotations: {} labels: {} portName: http - +Update statefulset.yaml serviceAccount: # Specifies whether a ServiceAccount should be created create: true @@ -172,6 +172,9 @@ serviceAccount: name: # Annotations for the ServiceAccount annotations: {} +## Specify priorityClassName +## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/ +# priorityClassName: system-node-critical ingress: enabled: false From 0c77351f9b4b77a56562386f8bb80f65f60243c8 Mon Sep 17 00:00:00 2001 From: Thibault Cohen <47721+titilambert@users.noreply.github.com> Date: Fri, 23 Jun 2023 22:23:26 -0400 Subject: [PATCH 3/3] Update values.yaml --- charts/influxdb2/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/influxdb2/values.yaml b/charts/influxdb2/values.yaml index f546383b..d7bb92ee 100644 --- a/charts/influxdb2/values.yaml +++ b/charts/influxdb2/values.yaml @@ -163,7 +163,7 @@ service: annotations: {} labels: {} portName: http -Update statefulset.yaml + serviceAccount: # Specifies whether a ServiceAccount should be created create: true