From aabf6cd3097d3b9451602377d4f54bdf5fb96bdb Mon Sep 17 00:00:00 2001 From: knabben-mms Date: Wed, 30 Oct 2024 12:12:47 +0100 Subject: [PATCH 1/2] [Application] add value to change the podManagementPolicy for statefulSets --- charts/application/Chart.yaml | 2 +- charts/application/templates/k8s-statefulset.yaml | 1 + charts/application/values.yaml | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/application/Chart.yaml b/charts/application/Chart.yaml index cdf54be..da9f7d0 100644 --- a/charts/application/Chart.yaml +++ b/charts/application/Chart.yaml @@ -7,4 +7,4 @@ maintainers: - name: MediaMarktSaturn url: https://github.com/MediaMarktSaturn appVersion: 1.0.0 -version: 1.26.1 +version: 1.27.0 diff --git a/charts/application/templates/k8s-statefulset.yaml b/charts/application/templates/k8s-statefulset.yaml index 716cdfb..0637bec 100644 --- a/charts/application/templates/k8s-statefulset.yaml +++ b/charts/application/templates/k8s-statefulset.yaml @@ -15,6 +15,7 @@ spec: {{- include "selectorLabels" . | nindent 6 }} replicas: {{ .Values.autoscaling.minReplicaCount }} serviceName: {{ .Release.Name }} + podManagementPolicy: {{ .Values.statefulSet.podManagementPolicy }} template: {{- include "podTemplate" . | nindent 4 }} {{- end }} diff --git a/charts/application/values.yaml b/charts/application/values.yaml index 138c496..8c49519 100644 --- a/charts/application/values.yaml +++ b/charts/application/values.yaml @@ -2,6 +2,9 @@ statefulSet: enabled: false + # The policy for how pods inside the statefulSet are created and stopped: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies + podManagementPolicy: OrderedReady + container: port: 8080 securityContext: From d32e6eb42e70c325ec62fee10fb2870a72a5076a Mon Sep 17 00:00:00 2001 From: knabben-mms Date: Wed, 30 Oct 2024 12:18:18 +0100 Subject: [PATCH 2/2] [Application] Clarify value description --- charts/application/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/application/values.yaml b/charts/application/values.yaml index 8c49519..6c275bf 100644 --- a/charts/application/values.yaml +++ b/charts/application/values.yaml @@ -2,7 +2,7 @@ statefulSet: enabled: false - # The policy for how pods inside the statefulSet are created and stopped: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies + # The policy for how pods inside the statefulSet are handled: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies podManagementPolicy: OrderedReady container: