Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

PostgreSQL Helm Chart

This chart deploys PostgreSQL on Spin. Update the placeholders in values_template.yaml, or use the helper script to generate values.yaml.

Prerequisites

  • kubectl and helm installed
  • Access to a Spin namespace and its kubeconfig

See tls-acme/README.md for installation steps for kubectl/helm and kubeconfig.

Configure values

  1. Edit postgresql/prepare-values.sh with your settings.
  2. Generate a rendered values file:
./prepare-values.sh

This writes values.yaml (or a custom path if you pass one).

Quick start

cd postgresql
./prepare-values.sh
helm lint .
helm install -n <namespace> <release-name> .

Install

helm install -n <namespace> <release-name> .

If your cluster requires LoadBalancer-specific annotations or a fixed IP, set them under loadBalancer in values.yaml. For example, Harvester DHCP-based address allocation can require:

loadBalancer:
  annotations:
    cloudprovider.harvesterhci.io/ipam: dhcp

Upgrade or uninstall

helm upgrade -n <namespace> <release-name> .
helm uninstall -n <namespace> <release-name>

Notes

  • Persistent volume size is controlled by persistentVolumeClaims.<deployment_name>.size (where deployment_name defaults to psql in prepare-values.sh).
  • Liveness and readiness probes use pg_isready with the configured database name and user.