cloudnative-pg
by jouve
Helm chartv0.27.0App 1.28.0Apache-2.0Verified publisher
CloudNativePG Operator Helm Chart
About this chart
cloudnative-pg
CloudNativePG Operator Helm Chart
Homepage: https://cloudnative-pg.io
Maintainers
| Name | Url | |
|---|---|---|
| phisco | [email protected] |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| https://cloudnative-pg.github.io/grafana-dashboards | monitoring(cluster) | 0.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalArgs | list | [] | Additional arguments to be added to the operator's args list. |
| additionalEnv | list | [] | Array containing extra environment variables which can be templated. For example: - name: RELEASE_NAME value: "{{ .Release.Name }}" - name: MY_VAR value: "mySpecialKey" |
| affinity | object | {} | Affinity for the operator to be installed. |
| commonAnnotations | object | {} | Annotations to be added to all other resources. |
| config.clusterWide | bool | true | This 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.create | bool | true | Specifies whether the secret should be created. |
| config.data | object | {} | The content of the configmap/secret, see https://cloudnative-pg.io/documentation/current/operator_conf/#available-options for all the available options. |
| config.maxConcurrentReconciles | int | 10 | The maximum number of concurrent reconciles. Defaults to 10. |
| config.name | string | "cnpg-controller-manager-config" | The name of the configmap/secret to use. |
| config.secret | bool | false | Specifies whether it should be stored in a secret, instead of a configmap. |
| containerSecurityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":10001,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}} | Container Security Context. |
| crds.create | bool | true | Specifies whether the CRDs should be created when installing the chart. |
| extraDeploy | list | [] | Array of extra objects to deploy with the release |
| dnsPolicy | string | "" | |
| fullnameOverride | string | "" | |
| hostNetwork | bool | false | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ghcr.io/cloudnative-pg/cloudnative-pg" | |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | |
| monitoring.grafanaDashboard.annotations | object | {} | Annotations that ConfigMaps can have to get configured in Grafana. |
| monitoring.grafanaDashboard.configMapName | string | "cnpg-grafana-dashboard" | The name of the ConfigMap containing the dashboard. |
| monitoring.grafanaDashboard.create | bool | false | |
| monitoring.grafanaDashboard.labels | object | {} | Labels that ConfigMaps should have to get configured in Grafana. |
| monitoring.grafanaDashboard.namespace | string | "" | Allows overriding the namespace where the ConfigMap will be created, defaulting to the same one as the Release. |
| monitoring.grafanaDashboard.sidecarLabel | string | "grafana_dashboard" | Label that ConfigMaps should have to be loaded as dashboards. DEPRECATED: Use labels instead. |
| monitoring.grafanaDashboard.sidecarLabelValue | string | "1" | Label value that ConfigMaps should have to be loaded as dashboards. DEPRECATED: Use labels instead. |
| monitoring.podMonitorAdditionalLabels | object | {} | Additional labels for the podMonitor |
| monitoring.podMonitorEnabled | bool | false | Specifies whether the monitoring should be enabled. Requires Prometheus Operator CRDs. |
| monitoring.podMonitorMetricRelabelings | list | [] | Metrics relabel configurations to apply to samples before ingestion. |
| monitoring.podMonitorRelabelings | list | [] | Relabel configurations to apply to samples before scraping. |
| monitoringQueriesConfigMap.name | string | "cnpg-default-monitoring" | The name of the default monitoring configmap. |
| monitoringQueriesConfigMap.queries | string | `"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 cloudnative-pg with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cloudnative-pg 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcloudnative-pg is pinned at v0.27.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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