postgresql

by joaquinito2051

Helm chartv5.40.2+20261016.171231.346App 1.28.5Apache-2.0

EDB Postgres for Kubernetes Helm Chart

About this chart

edb-postgres-for-kubernetes

EDB Postgres for Kubernetes Helm Chart

Homepage: https://www.enterprisedb.com/products/postgresql-on-kubernetes-ha-clusters-k8s-containers-scalable

Maintainers

NameEmailUrl
gbartolini[email protected]
jsilvela[email protected]
litaocdl[email protected]

Source Code

Values

KeyTypeDefaultDescription
additionalArgslist[]Additional arguments to be added to the operator's args list
additionalEnvlist[]Array containing extra environment variables which can be templated. For example: - name: RELEASE_NAME value: "{{ .Release.Name }}" - name: MY_VAR value: "mySpecialKey"
affinityobject{}Affinity for the operator to be installed
commonAnnotationsobject{}Annotations to be added to all other resources.
config.clusterWidebooltrueThis option determines if the operator is responsible for observing events across the entire Kubernetes cluster or if its focus should be narrowed down to the specific namespace within which it has been deployed.
config.createbooltrueSpecifies whether the secret should be created
config.dataobject{"PULL_SECRET_NAME":"edb-pull-secret"}The content of the configmap/secret, see https://www.enterprisedb.com/docs/postgres_for_kubernetes/latest/operator_conf/#available-options for all the available options.
config.namestring"postgresql-operator-controller-manager-config"The name of the configmap/secret to use.
config.secretboolfalseSpecifies whether it should be stored in a secret, instead of a configmap.
containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":10001,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}Container Security Context
crds.createbooltrueSpecifies whether the CRDs should be created when installing the chart.
dnsPolicystring""
fullnameOverridestring""
hostNetworkboolfalse
image.imageCredentials.createbooltrueSpecifies if an imagePullSecret should be created
image.imageCredentials.namestring"edb-pull-secret"
image.imageCredentials.passwordstring""
image.imageCredentials.registrystring"docker.enterprisedb.com"
image.imageCredentials.usernamestring"k8s"
image.pullPolicystring"IfNotPresent"
image.repositorystring"docker.enterprisedb.com/k8s/edb-postgres-for-cloudnativepg"
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecrets[0].namestring"edb-pull-secret"
monitoring.podMonitorAdditionalLabelsobject{}Additional labels for the podMonitor
monitoring.podMonitorEnabledboolfalseSpecifies whether the monitoring should be enabled. Requires Prometheus Operator CRDs.
monitoring.podMonitorMetricRelabelingslist[]Metrics relabel configurations to apply to samples before ingestion.
monitoring.podMonitorRelabelingslist[]Relabel configurations to apply to samples before scraping.
monitoringQueriesConfigMap.namestring"postgresql-operator-default-monitoring"The name of the default monitoring configmap
monitoringQueriesConfigMap.queriesstring`"backends:\n query:\n SELECT sa.datname\n , sa.usename\n , sa.application_name\n , states.state\n , COALESCE(sa.count, 0) AS total\n , COALESCE(sa.max_tx_secs, 0) AS max_tx_duration_seconds\n FROM ( VALUES ('active')\n , ('idle')\n , ('idle in transaction')\n , ('idle in transaction (aborted)')\n , ('fastpath function call')\n , ('disabled')\n ) AS states(state)\n LEFT JOIN (\n SELECT datname\n , state\n , usename\n , COALESCE(application_name, '') AS application_name\n , COUNT(*)\n , COALESCE(EXTRACT (EPOCH FROM (max(now() - xact_start))), 0) AS max_tx_secs\n FROM pg_catalog.pg_stat_activity\n GROUP BY datname, state, usename, application_name\n ) sa ON states.state = sa.state\n WHERE sa.usename IS NOT NULL\n metrics:\n - datname:\n usage: "LABEL"\n description: "Name of the database"\n - usename:\n usage: "LABEL"\n description: "Name of the user"\n - application_name:\n usage: "LABEL"\n description: "Name of the application"\n - state:\n usage: "LABEL"\n description: "State of the backend"\n - total:\n usage: "GAUGE"\n description: "Number of backends"\n - max_tx_duration_seconds:\n usage: "GAUGE"\n description: "Maximum duration of a transaction in seconds"\n\nbackends_waiting:\n query:

Deploy postgresql with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has 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 chartpostgresql is pinned at v5.40.2+20261016.171231.346 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