Python API
Kustomize and Helm
If you're running locally without PostgreSQL, you'll need to deploy it. (If you already have a database, feel free to skip ahead – timestamps are in the description.)
Kustomize allows us to reference Helm charts, so instead of building our own PostgreSQL setup, we can use the well-maintained Bitnami chart. We'll only customize the PostgreSQL credentials through our values file.
./deploy/kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: blazing
helmCharts:
- name: postgresql
namespace: blazing
releaseName: postgresql
repo: https://charts.bitnami.com/bitnami
version: 16.1.2
valuesFile: values.yaml
./deploy/values.yaml
auth:
database: blazing
password: admin
username: admin