Postgres
This reference documents the Kubernetes configuration options for the PostgreSQL chart, which provides a PostgreSQL database for the Grafbase Enterprise Platform.
All configuration options are nested under the postgresql
key.
Note: As of v0.9.0, this is a custom chart using the official PostgreSQL Docker image (postgres:17) instead of the deprecated Bitnami chart. See the v0.9.0 release notes for migration information.
Important: This chart is primarily intended for proof-of-concept deployments. For production use, we recommend using your own PostgreSQL infrastructure.
Global configuration values for the chart.
Defaults:
global:
imagePullSecrets:
- name: replicated-pull-secret
postgresql:
auth:
postgresPassword: ""
Container image configuration for PostgreSQL.
Defaults:
image:
repository: postgres
tag: "17.5"
pullPolicy: IfNotPresent
Authentication configuration for the PostgreSQL database.
Defaults:
auth:
enablePostgresUser: true
postgresPassword: grafbase
username: "" # Optional: create additional user
password: "" # Optional: password for additional user
database: grafbase
Common annotations for the PostgreSQL resources. Can be used to configure Helm hooks for deployment ordering.
Defaults:
commonAnnotations: {}
Example with hooks:
commonAnnotations:
'helm.sh/hook': pre-install
'helm.sh/hook-weight': '-15'
Primary configuration for the PostgreSQL database.
Defaults:
primary:
resources:
limits: {}
requests: {}
Example with resource limits:
primary:
resources:
limits:
cpu: 2000m
memory: 2000Mi
requests:
cpu: 1000m
memory: 1000Mi
Service configuration for exposing PostgreSQL.
Defaults:
service:
type: ClusterIP
port: 5432
nodePort: "" # Only used when type is NodePort
Persistence configuration for PostgreSQL data.
Defaults:
persistence:
enabled: true
size: 8Gi
Custom initialization scripts to run when the database is first created.
Defaults:
initdbScripts: {}
Example:
initdbScripts:
init.sql: |
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;