zalando-postgres-cluster

by KlickTipp

Helm chartv1.1.4App 1.15.1Verified publisher

Creates a postgres cluster using the Zalando Postgres operator and local storage

About this chart

zalando-postgres-cluster

Creates a postgres cluster using the Zalando Postgres operator and local storage

Maintainers

NameEmailUrl
KlickTipp DevOps Team

Source Code

Values

KeyTypeDefaultDescription
nameOverridestring""Partially override generated resource names.
fullnameOverridestring""Fully override generated resource names.
serviceAccountobject{"annotations":{},"automount":true,"create":true,"name":""}ServiceAccount configuration.
serviceAccount.createbooltrueSet serviceAccount.create.
serviceAccount.automountbooltrueSet serviceAccount.automount.
serviceAccount.annotationsobject{}Annotations map.
serviceAccount.namestring""Set serviceAccount.name.
postgres_clusterobject{"annotations":{},"backup":{"enabled":false,"retention":"7 days","schedule":"30 00 * * *"},"database":{"name":"app"},"enabled":true,"env":[],"expose":{"masterLoadBalancer":false,"replicaLoadBalancer":false},"instances":1,"labels":{},"name":"","nodeAffinity":{},"podServiceAccount":{"name":""},"pooler":{"enableMasterPoolerLoadBalancer":false,"enableReplicaConnectionPooler":false,"enableReplicaPoolerLoadBalancer":false,"enabled":false},"postgres":{"parameters":{},"version":"17"},"preparedDatabases":{},"priorityClassName":"","resources":{},"teamId":"app","tls":{"caFile":"","caSecretName":"","certificateFile":"tls.crt","createCertificate":false,"duration":"2160h","enabled":false,"issuerRef":{"group":"cert-manager.io","kind":"ClusterIssuer","name":""},"organization":"ACME INC.","privateKeyFile":"tls.key","renewBefore":"360h","secretName":""},"tolerations":[],"users":[],"volume":{"enabled":false,"size":"10Gi","storageClass":""},"wal":{"accessKeyId":null,"awsRegion":null,"backupNumToRetain":"3","backupSchedule":"0 10 * * *","enabled":false,"logS3Tags":true,"s3Bucket":null,"s3ScopePrefix":null,"secretAccessKey":null}}Set postgres_cluster.
postgres_cluster.enabledbooltrueEnable this feature.
postgres_cluster.teamIdstring"app"Set postgres_cluster.teamId.
postgres_cluster.namestring""Set postgres_cluster.name.
postgres_cluster.labelsobject{}Labels map.
postgres_cluster.annotationsobject{}Annotations map.
postgres_cluster.instancesint1Configure postgres_cluster.instances.
postgres_cluster.priorityClassNamestring""Set postgres_cluster.priorityClassName.
postgres_cluster.postgresobject{"parameters":{},"version":"17"}Configure postgres_cluster.postgres.
postgres_cluster.postgres.versionstring"17"Set postgres_cluster.postgres.version.
postgres_cluster.postgres.parametersobject{}Configure postgres_cluster.postgres.parameters.
postgres_cluster.databaseobject{"name":"app"}Set postgres_cluster.database.
postgres_cluster.database.namestring"app"Set postgres_cluster.database.name.
postgres_cluster.preparedDatabasesobject{}Configure postgres_cluster.preparedDatabases.
postgres_cluster.userslist[]Configure postgres_cluster.users.
postgres_cluster.volumeobject{"enabled":false,"size":"10Gi","storageClass":""}Set postgres_cluster.volume.
postgres_cluster.volume.enabledboolfalseEnable this feature.
postgres_cluster.volume.sizestring"10Gi"Storage size.
postgres_cluster.volume.storageClassstring""StorageClass name for dynamic provisioning.
postgres_cluster.exposeobject{"masterLoadBalancer":false,"replicaLoadBalancer":false}Set postgres_cluster.expose.
postgres_cluster.expose.masterLoadBalancerboolfalseSet postgres_cluster.expose.masterLoadBalancer.
postgres_cluster.expose.replicaLoadBalancerboolfalseSet postgres_cluster.expose.replicaLoadBalancer.
postgres_cluster.poolerobject{"enableMasterPoolerLoadBalancer":false,"enableReplicaConnectionPooler":false,"enableReplicaPoolerLoadBalancer":false,"enabled":false}Set postgres_cluster.pooler.
postgres_cluster.pooler.enabledboolfalseEnable this feature.
postgres_cluster.pooler.enableMasterPoolerLoadBalancerboolfalseSet postgres_cluster.pooler.enableMasterPoolerLoadBalancer.
postgres_cluster.pooler.enableReplicaPoolerLoadBalancerboolfalseSet postgres_cluster.pooler.enableReplicaPoolerLoadBalancer.
postgres_cluster.pooler.enableReplicaConnectionPoolerboolfalseSet postgres_cluster.pooler.enableReplicaConnectionPooler.
postgres_cluster.backupobject{"enabled":false,"retention":"7 days","schedule":"30 00 * * *"}Set postgres_cluster.backup.
postgres_cluster.backup.enabledboolfalseEnable this feature.
postgres_cluster.backup.schedulestring"30 00 * * *"Set postgres_cluster.backup.schedule.
postgres_cluster.backup.retentionstring"7 days"Set postgres_cluster.backup.retention.
postgres_cluster.walobject{"accessKeyId":null,"awsRegion":null,"backupNumToRetain":"3","backupSchedule":"0 10 * * *","enabled":false,"logS3Tags":true,"s3Bucket":null,"s3ScopePrefix":null,"secretAccessKey":null}Set postgres_cluster.wal.
postgres_cluster.wal.enabledboolfalseEnable this feature.
postgres_cluster.wal.backupSchedulestring"0 10 * * *"Set postgres_cluster.wal.backupSchedule.
postgres_cluster.wal.s3BucketstringnilSet postgres_cluster.wal.s3Bucket.
postgres_cluster.wal.s3ScopePrefixstringnilSet postgres_cluster.wal.s3ScopePrefix.
postgres_cluster.wal.awsRegionstringnilSet postgres_cluster.wal.awsRegion.
postgres_cluster.wal.accessKeyIdstringnilSet postgres_cluster.wal.accessKeyId.
postgres_cluster.wal.secretAccessKeystringnilSet postgres_cluster.wal.secretAccessKey.
postgres_cluster.wal.backupNumToRetainstring"3"Set postgres_cluster.wal.backupNumToRetain.
postgres_cluster.wal.logS3TagsbooltrueConfigure postgres_cluster.wal.logS3Tags.
postgres_cluster.tlsobject{"caFile":"","caSecretName":"","certificateFile":"tls.crt","createCertificate":false,"duration":"2160h","enabled":false,"issuerRef":{"group":"cert-manager.io","kind":"ClusterIssuer","name":""},"organization":"ACME INC.","privateKeyFile":"tls.key","renewBefore":"360h","secretName":""}TLS configuration.
postgres_cluster.tls.enabledboolfalseEnable this feature.
postgres_cluster.tls.secretNamestring""Set postgres_cluster.tls.secretName.
postgres_cluster.tls.certificateFilestring"tls.crt"Set postgres_cluster.tls.certificateFile.
postgres_cluster.tls.privateKeyFilestring"tls.key"Set postgres_cluster.tls.privateKeyFile.
postgres_cluster.tls.caFilestring""Set postgres_cluster.tls.caFile.
postgres_cluster.tls.caSecretNamestring""Set postgres_cluster.tls.caSecretName.
postgres_cluster.tls.createCertificateboolfalseSet postgres_cluster.tls.createCertificate.
postgres_cluster.tls.organizationstring"ACME INC."Set postgres_cluster.tls.organization.
postgres_cluster.tls.durationstring"2160h"Set postgres_cluster.tls.duration.
postgres_cluster.tls.renewBeforestring"360h"Set postgres_cluster.tls.renewBefore.
postgres_cluster.tls.issuerRefobject{"group":"cert-manager.io","kind":"ClusterIssuer","name":""}Set postgres_cluster.tls.issuerRef.
postgres_cluster.tls.issuerRef.namestring""Set postgres_cluster.tls.issuerRef.name.
postgres_cluster.tls.issuerRef.kindstring"ClusterIssuer"Set postgres_cluster.tls.issuerRef.kind.
postgres_cluster.tls.issuerRef.groupstring"cert-manager.io"Set postgres_cluster.tls.issuerRef.group.
postgres_cluster.podServiceAccountobject{"name":""}Set postgres_cluster.podServiceAccount.
postgres_cluster.podServiceAccount.namestring""Set postgres_cluster.podServiceAccount.name.
postgres_cluster.envlist[]Environment variable entries.
postgres_cluster.resourcesobject{}Container resource requests and limits.
postgres_cluster.nodeAffinityobject{}Set postgres_cluster.nodeAffinity.
postgres_cluster.tolerationslist[]Tolerations for pod scheduling.

Deploy zalando-postgres-cluster with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has zalando-postgres-cluster 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 chartzalando-postgres-cluster is pinned at v1.1.4 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