Skip to content

Commit

Permalink
Add custom liveness param
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Jul 31, 2024
1 parent 998c2cd commit e50e356
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/test/kubernetes-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ kubectl config set-context default
# Deploy a Postgres pod to Kind
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm upgrade --install postgres bitnami/postgresql
helm upgrade --install postgres bitnami/postgresql -f scripts/test/values.yaml

# Retrieve the Postgres password and set it as an environment variable
POSTGRES_PASSWORD=$(kubectl get secret --namespace default postgres-postgresql -o jsonpath="{.data.postgres-password}" | base64 -d)
Expand Down
11 changes: 11 additions & 0 deletions scripts/test/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
postgresql:
livenessProbe:
exec:
command:
- /bin/sh
- -c
- exec pg_isready -U "postgres" -h 127.0.0.1 -p 5432
initialDelaySeconds: 120
timeoutSeconds: 120
periodSeconds: 120
successThreshold: 1

0 comments on commit e50e356

Please sign in to comment.