Skip to content

Suggestion: Set the healthcheck and probes by default #121

Description

@rbozan

My suggestion is twofold:

  1. Set the healthcheckport by default to a certain port.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions