Skip to content

Commit

Permalink
Merge pull request #157 from MediaMarktSaturn/statefulset-podmgmt
Browse files Browse the repository at this point in the history
[Application] add value to change the podManagementPolicy for statefulSet
  • Loading branch information
heubeck authored Oct 30, 2024
2 parents abf3fb4 + d32e6eb commit 5a775a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/application/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ maintainers:
- name: MediaMarktSaturn
url: https://github.com/MediaMarktSaturn
appVersion: 1.0.0
version: 1.26.1
version: 1.27.0
1 change: 1 addition & 0 deletions charts/application/templates/k8s-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
3 changes: 3 additions & 0 deletions charts/application/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
statefulSet:
enabled: false

# The policy for how pods inside the statefulSet are handled: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
podManagementPolicy: OrderedReady

container:
port: 8080
securityContext:
Expand Down

0 comments on commit 5a775a8

Please sign in to comment.