My suggestion is twofold:
- Set the
healthcheckport by default to a certain port.
- Set the probes by default if there are no probes set by the user and
healthcheckport is set:
|
livenessProbe: |
|
type: object |
|
description: Container liveness probe configuration |
|
readinessProbe: |
|
type: object |
|
description: Container readiness probe configuration |
|
startupProbe: |
|
type: object |
|
description: Container startup probe configuration |
This seems better suitable for users that just simply want a good default installation. I assume users might not be aware that the health check is not enabled and if they're looking for it they might come across this example (which they have to customize based on their dbname / username):
|
livenessProbe: |
|
exec: |
|
command: |
|
- /usr/bin/pg_isready |
|
- -h |
|
- 127.0.0.1 |
|
- -p |
|
- "6432" |
|
initialDelaySeconds: 10 |
|
periodSeconds: 10 |
|
readinessProbe: |
|
exec: |
|
command: |
|
- /usr/bin/pg_isready |
|
- -h |
|
- 127.0.0.1 |
|
- -p |
|
- "6432" |
|
initialDelaySeconds: 5 |
|
periodSeconds: 5 |
|
startupProbe: |
|
exec: |
|
command: |
|
- /usr/bin/pg_isready |
|
- -h |
|
- 127.0.0.1 |
|
- -p |
|
- "6432" |
|
failureThreshold: 30 |
|
periodSeconds: 5 |
Without knowing that there's a HTTP health check endpoint:
https://docs.pgdog.dev/features/load-balancer/healthchecks/#http-endpoint
Power users can still customize the probes however they please.
Thanks for the chart.
My suggestion is twofold:
healthcheckportby default to a certain port.healthcheckportis set:helm/scripts/schema-overrides.yaml
Lines 84 to 92 in 0cd9957
This seems better suitable for users that just simply want a good default installation. I assume users might not be aware that the health check is not enabled and if they're looking for it they might come across this example (which they have to customize based on their
dbname/username):helm/examples/full-example.yaml
Lines 105 to 134 in 0cd9957
Without knowing that there's a HTTP health check endpoint:
https://docs.pgdog.dev/features/load-balancer/healthchecks/#http-endpoint
Power users can still customize the probes however they please.
Thanks for the chart.