radar-cloudnative-postgresql

by RADAR-Base

Helm chartv0.4.1Verified publisher

CloudNativePG Postgresql helm chart for RADAR-base

About this chart

radar-cloudnative-postgresql

CloudNativePG Postgresql helm chart for RADAR-base

Homepage: https://radar-base.org

CloudNativePG Operator

This chart uses CloudNativePG Operator to deploy a PostgreSQL database. The deployment of this operator is managed by the cloudnativepg-operator chart dependency. Configuration to the operator is passed via the cluster: key in the values.yaml file. Consult the documentation of the CloudNativePG Operator for additional information on how to configure the operator if needed.

Maintainers

NameEmailUrl
Pim van Nierop[email protected]https://www.thehyve.nl/experts/pim-van-nierop

Source Code

Prerequisites

  • Kubernetes 1.28+
  • Kubectl 1.28+
  • Helm 3.1.0+

Requirements

RepositoryNameVersion
file://../../external/cloudnativepg-clustercluster0.3.1
https://radar-base.github.io/radar-helm-chartscommon2.x.x

Values

KeyTypeDefaultDescription
secretobject{"enabled":true,"nameOverride":"","secretAnnotations":{"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation","helm.sh/hook-weight":"0","helm.sh/resource-policy":"keep"},"users":[{"dbname":"managementportal","user":"managementportal"},{"dbname":"restsourceauthorizer","user":"restsourceauthorizer"},{"dbname":"appconfig","user":"appconfig"},{"dbname":"kratos","user":"kratos"},{"dbname":"hydra","user":"hydra"},{"dbname":"appserver","user":"appserver"},{"dbname":"uploadconnector","user":"uploadconnector"}]}Values for creating the database user secretsl
secret.enabledbooltrueSwitch to false to prevent creating user secrets.
secret.secretAnnotationsobject{"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation","helm.sh/hook-weight":"0","helm.sh/resource-policy":"keep"}Annotations to be added to secret. Annotations are added only when secret is being created. Existing secret will not be modified.
secret.userslistcheck values.yamlRandom database password secrets will be created for these users.
clusterobjectcheck values.yamlCloudNativePG configuration
cluster.cluster.postgresql.parameters.wal_keep_sizestring"1GB"Can be decreased to save disk space. 1GB default was chosen to prevent missing wal files during recovery.

Deploy radar-cloudnative-postgresql with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has radar-cloudnative-postgresql on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartradar-cloudnative-postgresql is pinned at v0.4.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply