Helm chart for PgDog.
- Install Helm
- Configure
kubectl
to point to your K8s cluster - Add our Helm repository:
helm repo add pgdogdev https://helm.pgdog.dev
- Configure databases and users in
values.yaml
- Run
helm install pgdogdev/pgdog <name> -f values.yaml
where<name>
is the name of your deployment.
All resources will be created in <name>
namespace.
Configuration is done via values.yaml
. All PgDog settings from pgdog.toml
and users.toml
are supported. General settings ([general]
section) are top level. Use camelCase format instead of snake_case, for example: checkout_timeout
becomes checkoutTimeout
.
workers: 2
defaultPoolSize: 15
openMetricsPort: 9090
By default, the image from our GitHub repository is used. This is configurable:
image:
name: ghcr.io/pgdogdev/pgdog:main
pullPolicy: Always
Add databases to databases
list. For example:
databases:
- name: "prod"
host: "10.0.0.1"
Add users to users
list, for example:
users:
- name: "alice"
database: "prod"
password: "hunter2"
Prometheus metrics can be collected with a sidecar. Enable by configuring prometheusPort
:
prometheusPort: 9091
Make sure it's different from openMetricsPort
. Prometheus side car will be added to all containers. You can configure Prometheus in templates/prom/config.yaml
, e.g., to push metrics to your Grafana deployment.
Contributions are welcome. Please open a pull request / issue with requested changes.
MIT