Skip to content

Commit

Permalink
liveness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
vincetse committed Feb 3, 2024
1 parent 374cdbb commit 8d762ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion developing/postgres/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 6 additions & 0 deletions developing/postgres/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ spec:
readOnly: false
resources:
{{- toYaml .Values.resources | nindent 12 }}
livenessProbe:
exec:
command:
- pg_isready
initialDelaySeconds: 120
periodSeconds: 30

volumeClaimTemplates:
- metadata:
Expand Down

0 comments on commit 8d762ed

Please sign in to comment.