Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: pgdog
version: v0.57
version: v0.58
appVersion: "0.1.40"
5 changes: 3 additions & 2 deletions examples/full-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ podDisruptionBudget:
enabled: true
minAvailable: 2 # Keep at least 2 pods running

# Configure graceful shutdown window. Should be larger than the sum of shutdownTimeout and preStopSleepSeconds
terminationGracePeriodSeconds: 90
# terminationGracePeriodSeconds is automatically set to shutdownTimeout + 5 seconds.
# Uncomment to override:
# terminationGracePeriodSeconds: 90

# Enable preStop sleep
preStopSleepSeconds: 25
Expand Down
2 changes: 2 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ spec:
{{- end }}
{{- if .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- else }}
terminationGracePeriodSeconds: {{ add (div (default 60000 .Values.shutdownTimeout | int64) 1000) 5 }}
{{- end }}
{{- with .Values.extraInitContainers }}
initContainers:
Expand Down
4 changes: 3 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ replicas: 2
# Not set by default; omitted from the pod spec unless explicitly specified.
# Example: priorityClassName: production-critical

# Uncomment to enable explicit grace period
# terminationGracePeriodSeconds is automatically set to shutdownTimeout + 5 seconds.
# Default is 65 seconds (60s shutdownTimeout + 5s buffer).
# Uncomment to override with an explicit value:
# terminationGracePeriodSeconds: 90

# Optional: Delay stopping the container to allow the Kubernetes service to update its endpoints and
Expand Down
Loading