File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11apiVersion : v1
22name : pgdog
3- version : v0.57
3+ version : v0.58
44appVersion : " 0.1.40"
Original file line number Diff line number Diff line change @@ -87,8 +87,9 @@ podDisruptionBudget:
8787 enabled : true
8888 minAvailable : 2 # Keep at least 2 pods running
8989
90- # Configure graceful shutdown window. Should be larger than the sum of shutdownTimeout and preStopSleepSeconds
91- terminationGracePeriodSeconds : 90
90+ # terminationGracePeriodSeconds is automatically set to shutdownTimeout + 5 seconds.
91+ # Uncomment to override:
92+ # terminationGracePeriodSeconds: 90
9293
9394# Enable preStop sleep
9495preStopSleepSeconds : 25
Original file line number Diff line number Diff line change 4949 {{- end }}
5050 {{- if .Values.terminationGracePeriodSeconds }}
5151 terminationGracePeriodSeconds : {{ .Values.terminationGracePeriodSeconds }}
52+ {{- else }}
53+ terminationGracePeriodSeconds : {{ add (div (default 60000 .Values.shutdownTimeout | int64) 1000) 5 }}
5254 {{- end }}
5355 {{- with .Values.extraInitContainers }}
5456 initContainers :
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ replicas: 2
6666# Not set by default; omitted from the pod spec unless explicitly specified.
6767# Example: priorityClassName: production-critical
6868
69- # Uncomment to enable explicit grace period
69+ # terminationGracePeriodSeconds is automatically set to shutdownTimeout + 5 seconds.
70+ # Default is 65 seconds (60s shutdownTimeout + 5s buffer).
71+ # Uncomment to override with an explicit value:
7072# terminationGracePeriodSeconds: 90
7173
7274# Optional: Delay stopping the container to allow the Kubernetes service to update its endpoints and
You can’t perform that action at this time.
0 commit comments