Skip to content

Commit

Permalink
fix: Correctly call psql in probes
Browse files Browse the repository at this point in the history
The `-W` flag in psql is used to provide a password prompt
to the user. However, this lead to a problem that the probes
were no longer successful due to that. Chaning this to `-w'
ensures that no prompt is given and additionally,
we don't need the password here.

Co-authored-by: Arjan Molenaar <[email protected]>
  • Loading branch information
2 people authored and MoritzWeber0 committed Jan 29, 2024
1 parent a25fb6d commit 712b5f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm/templates/guacamole/postgres.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ spec:
protocol: TCP
readinessProbe:
exec:
command: ["psql", "-W", "{{ .Values.database.guacamole.internal.password }}", "-U", "guacamole", "-d", "guacamole", "-c", "SELECT 1"]
command: ["psql", "-w", "-U", "guacamole", "-d", "guacamole", "-c", "SELECT 1"]
initialDelaySeconds: 15
timeoutSeconds: 2
livenessProbe:
exec:
command: ["psql", "-W", "{{ .Values.database.guacamole.internal.password }}", "-U", "guacamole", "-d", "guacamole", "-c", "SELECT 1"]
command: ["psql", "-w", "-U", "guacamole", "-d", "guacamole", "-c", "SELECT 1"]
initialDelaySeconds: 45
timeoutSeconds: 2
resources:
Expand Down

0 comments on commit 712b5f4

Please sign in to comment.