diff --git a/cockroachdb/templates/statefulset.yaml b/cockroachdb/templates/statefulset.yaml index ba920e07..8e1cc24b 100644 --- a/cockroachdb/templates/statefulset.yaml +++ b/cockroachdb/templates/statefulset.yaml @@ -138,7 +138,7 @@ spec: {{- end }} # No pre-stop hook is required, a SIGTERM plus some time is all that's # needed for graceful shutdown of a node. - terminationGracePeriodSeconds: 60 + terminationGracePeriodSeconds: {{ .Values.statefulset.terminationGracePeriodSeconds }} containers: - name: db image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/cockroachdb/values.yaml b/cockroachdb/values.yaml index a4277df3..bdcfecb9 100644 --- a/cockroachdb/values.yaml +++ b/cockroachdb/values.yaml @@ -213,6 +213,10 @@ statefulset: # Does not apply for other anti-affinity types. weight: 100 + # Pod termination grace period + # https://www.cockroachlabs.com/docs/stable/node-shutdown.html#termination-grace-period + terminationGracePeriodSeconds: 60 + # Node selection constraints for scheduling Pods of this StatefulSet. # https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector nodeSelector: {}