1# This file has been modified by Chainguard, Inc.
3# Copyright Chainguard, Inc. All Rights Reserved.
4# Chainguard, Inc. modifications are subject to the license
5# available at: https://www.chainguard.dev/legal/software-license-agreement
7# Copyright Broadcom, Inc. All Rights Reserved.
8# SPDX-License-Identifier: APACHE-2.0
10## @section Global parameters
11## Global Docker image parameters
12## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
15## @param global.imageRegistry Global Docker image registry
16## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
17## @param global.imagePullSecrets Global Docker registry secret names as an array
18## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
19## @param global.postgresql.username PostgreSQL username (overrides `postgresql.username`)
20## @param global.postgresql.password PostgreSQL password (overrides `postgresql.password`)
21## @param global.postgresql.database PostgreSQL database (overrides `postgresql.database`)
22## @param global.postgresql.repmgrUsername PostgreSQL repmgr username (overrides `postgresql.repmgrUsername`)
23## @param global.postgresql.repmgrPassword PostgreSQL repmgr password (overrides `postgresql.repmgrpassword`)
24## @param global.postgresql.repmgrDatabase PostgreSQL repmgr database (overrides `postgresql.repmgrDatabase`)
25## @param global.postgresql.existingSecret Name of existing secret to use for PostgreSQL passwords (overrides `postgresql.existingSecret`)
26## @param global.ldap.bindpw LDAP bind password (overrides `ldap.bindpw`)
27## @param global.ldap.existingSecret Name of existing secret to use for LDAP passwords (overrides `ldap.existingSecret`)
28## @param global.pgpool.adminUsername Pgpool-II Admin username (overrides `pgpool.adminUsername`)
29## @param global.pgpool.adminPassword Pgpool-II Admin password (overrides `pgpool.adminPassword`)
30## @param global.pgpool.srCheckUsername Pgpool-II SR Check username (overrides `pgpool.srCheckUsername`)
31## @param global.pgpool.srCheckPassword Pgpool-II SR Check password (overrides `pgpool.srCheckPassword`)
32## @param global.pgpool.existingSecret Pgpool-II existing secret
39 ## - myRegistryKeySecretName
42 defaultStorageClass: ""
43 ## Security parameters
46 ## @param global.security.allowInsecureImages Allows skipping image verification
47 allowInsecureImages: false
65 ## Compatibility adaptations for Kubernetes platforms
68 ## Compatibility adaptations for Openshift
71 ## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
73 adaptSecurityContext: auto
75## @section Common parameters
77## @param kubeVersion Override Kubernetes version
80## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
83## @param fullnameOverride String to fully override common.names.fullname template
86## @param namespaceOverride String to fully override common.names.namespace
89## @param commonLabels Common labels to add to all resources (sub-charts are not considered). Evaluated as a template
92## @param commonAnnotations Common annotations to add to all resources (sub-charts are not considered). Evaluated as a template
95## @param clusterDomain Kubernetes Cluster Domain
97clusterDomain: cluster.local
98## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
101## Diagnostic mode in the deployment
104 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
107 ## @param diagnosticMode.command [array] Command to override all containers in the deployment
111 ## @param diagnosticMode.args [array] Args to override all containers in the deployment
115## @section PostgreSQL with Repmgr parameters
117 ## @param postgresql.image.registry [default: REGISTRY_NAME] PostgreSQL with Repmgr image registry
118 ## @param postgresql.image.repository [default: REPOSITORY_NAME/postgresql-repmgr] PostgreSQL with Repmgr image repository
119 ## @skip postgresql.image.tag PostgreSQL with Repmgr image tag
120 ## @param postgresql.image.digest PostgreSQL with Repmgr image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
121 ## @param postgresql.image.pullPolicy PostgreSQL with Repmgr image pull policy
122 ## @param postgresql.image.pullSecrets Specify docker-registry secret names as an array
123 ## @param postgresql.image.debug Specify if debug logs should be enabled
127 repository: chainguard-private/postgres-repmgr-iamguarded
129 digest: sha256:8c6f0e85e39d45b96bba3a890ef4034e3c825eeabec87ffcdeb415ae2d4e3e32
130 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
132 pullPolicy: IfNotPresent
133 ## Optionally specify an array of imagePullSecrets.
134 ## Secrets must be manually created in the namespace.
135 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
138 ## - myRegistryKeySecretName
141 ## Set to true if you would like to see extra information on logs
144 ## @param postgresql.labels Labels to add to the StatefulSet. Evaluated as template
147 ## @param postgresql.podLabels Labels to add to the StatefulSet pods. Evaluated as template
150 ## @param postgresql.serviceAnnotations Provide any additional annotations for PostgreSQL service
152 serviceAnnotations: {}
153 ## @param postgresql.replicaCount Number of replicas to deploy. Use an odd number. Having 3 replicas is the minimum to get quorum when promoting a new primary.
156 ## @param postgresql.updateStrategy.type Postgresql StatefulSet strategy type
157 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
160 ## type: RollingUpdate
163 ## maxUnavailable: 25%
167 ## @param postgresql.containerPorts.postgresql PostgreSQL port
171 ## @param postgresql.automountServiceAccountToken Mount Service Account token in pod
173 automountServiceAccountToken: false
174 ## @param postgresql.hostAliases Deployment pod host aliases
175 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
178 ## @param postgresql.hostNetwork Specify if host network should be enabled for PostgreSQL pod
181 ## @param postgresql.hostIPC Specify if host IPC should be enabled for PostgreSQL pod
184 ## @param postgresql.podAnnotations Additional pod annotations
185 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
188 ## @param postgresql.podAffinityPreset PostgreSQL pod affinity preset. Ignored if `postgresql.affinity` is set. Allowed values: `soft` or `hard`
189 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
191 podAffinityPreset: ""
192 ## @param postgresql.podAntiAffinityPreset PostgreSQL pod anti-affinity preset. Ignored if `postgresql.affinity` is set. Allowed values: `soft` or `hard`
193 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
195 podAntiAffinityPreset: soft
196 ## PostgreSQL node affinity preset
197 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
200 ## @param postgresql.nodeAffinityPreset.type PostgreSQL node affinity preset type. Ignored if `postgresql.affinity` is set. Allowed values: `soft` or `hard`
203 ## @param postgresql.nodeAffinityPreset.key PostgreSQL node label key to match Ignored if `postgresql.affinity` is set.
205 ## key: "kubernetes.io/e2e-az-name"
208 ## @param postgresql.nodeAffinityPreset.values PostgreSQL node label values to match. Ignored if `postgresql.affinity` is set.
215 ## @param postgresql.affinity Affinity for PostgreSQL pods assignment
216 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
217 ## Note: postgresql.podAffinityPreset, postgresql.podAntiAffinityPreset, and postgresql.nodeAffinityPreset will be ignored when it's set
220 ## @param postgresql.nodeSelector Node labels for PostgreSQL pods assignment
221 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
224 ## @param postgresql.tolerations Tolerations for PostgreSQL pods assignment
225 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
228 ## @param postgresql.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
229 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
231 topologySpreadConstraints: []
232 ## @param postgresql.priorityClassName Pod priority class
233 ## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
235 priorityClassName: ""
236 ## @param postgresql.schedulerName Use an alternate scheduler, e.g. "stork".
237 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
240 ## @param postgresql.terminationGracePeriodSeconds Seconds PostgreSQL pod needs to terminate gracefully
241 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
243 terminationGracePeriodSeconds: ""
244 ## K8s Security Context
245 ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
246 ## @param postgresql.podSecurityContext.enabled Enable security context for PostgreSQL with Repmgr
247 ## @param postgresql.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
248 ## @param postgresql.podSecurityContext.sysctls Set kernel settings using the sysctl interface
249 ## @param postgresql.podSecurityContext.supplementalGroups Set filesystem extra groups
250 ## @param postgresql.podSecurityContext.fsGroup Group ID for the PostgreSQL with Repmgr filesystem
254 fsGroupChangePolicy: Always
256 supplementalGroups: []
258 ## Container Security Context
259 ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
260 ## @param postgresql.containerSecurityContext.enabled Enabled containers' Security Context
261 ## @param postgresql.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
262 ## @param postgresql.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
263 ## @param postgresql.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
264 ## @param postgresql.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
265 ## @param postgresql.containerSecurityContext.privileged Set container's Security Context privileged
266 ## @param postgresql.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
267 ## @param postgresql.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
268 ## @param postgresql.containerSecurityContext.capabilities.drop List of capabilities to be dropped
269 ## @param postgresql.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
271 ## containerSecurityContext:
275 ## readOnlyRootFilesystem: true
277 containerSecurityContext:
284 readOnlyRootFilesystem: true
285 allowPrivilegeEscalation: false
289 type: "RuntimeDefault"
290 ## @param postgresql.command Override default container command (useful when using custom images)
293 ## @param postgresql.args Override default container args (useful when using custom images)
296 ## @param postgresql.lifecycleHooks LifecycleHook to set additional configuration at startup, e.g. LDAP settings via REST API. Evaluated as a template
299 ## @param postgresql.extraEnvVars Array containing extra environment variables
301 ## - name: PG_EXPORTER_DISABLE_DEFAULT_METRICS
305 ## @param postgresql.extraEnvVarsCM ConfigMap with extra environment variables
308 ## @param postgresql.extraEnvVarsSecret Secret with extra environment variables
310 extraEnvVarsSecret: ""
311 ## @param postgresql.extraVolumes Extra volumes to add to the StatefulSet
314 ## @param postgresql.extraVolumeMounts Extra volume mounts to add to the container. Normally used with `extraVolumes`.
316 extraVolumeMounts: []
317 ## @param postgresql.initContainers Extra init containers to add to the StatefulSet
320 ## @param postgresql.sidecars Extra sidecar containers to add to the StatefulSet
323 ## PostgreSQL containers' resource requests and limits
324 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
325 ## We usually recommend not to specify default resources and to leave this as a conscious
326 ## choice for the user. This also increases chances charts run on environments with little
327 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
328 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
329 ## @param postgresql.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if postgresql.resources is set (postgresql.resources is recommended for production).
331 resourcesPreset: "micro"
332 ## @param postgresql.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
343 ## @param postgresql.podManagementPolicy Sets the pod management policy
344 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
346 podManagementPolicy: Parallel
347 ## PostgreSQL container's liveness probe
348 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
349 ## @param postgresql.livenessProbe.enabled Enable livenessProbe
350 ## @param postgresql.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
351 ## @param postgresql.livenessProbe.periodSeconds Period seconds for livenessProbe
352 ## @param postgresql.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
353 ## @param postgresql.livenessProbe.failureThreshold Failure threshold for livenessProbe
354 ## @param postgresql.livenessProbe.successThreshold Success threshold for livenessProbe
358 initialDelaySeconds: 15
363 ## PostgreSQL container's readiness probe
364 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
365 ## @param postgresql.readinessProbe.enabled Enable readinessProbe
366 ## @param postgresql.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
367 ## @param postgresql.readinessProbe.periodSeconds Period seconds for readinessProbe
368 ## @param postgresql.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
369 ## @param postgresql.readinessProbe.failureThreshold Failure threshold for readinessProbe
370 ## @param postgresql.readinessProbe.successThreshold Success threshold for readinessProbe
374 initialDelaySeconds: 5
379 ## PostgreSQL container's startup probe
380 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
381 ## @param postgresql.startupProbe.enabled Enable startupProbe
382 ## @param postgresql.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
383 ## @param postgresql.startupProbe.periodSeconds Period seconds for startupProbe
384 ## @param postgresql.startupProbe.timeoutSeconds Timeout seconds for startupProbe
385 ## @param postgresql.startupProbe.failureThreshold Failure threshold for startupProbe
386 ## @param postgresql.startupProbe.successThreshold Success threshold for startupProbe
390 initialDelaySeconds: 5
395 ## @param postgresql.customLivenessProbe Override default liveness probe
397 customLivenessProbe: {}
398 ## @param postgresql.customReadinessProbe Override default readiness probe
400 customReadinessProbe: {}
401 ## @param postgresql.customStartupProbe Override default startup probe
403 customStartupProbe: {}
405 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
408 ## @param postgresql.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
411 ## @param postgresql.networkPolicy.allowExternal Don't require server label for connections
412 ## The Policy model to apply. When set to false, only pods with the correct
413 ## server label will have network access to the ports server is listening
414 ## on. When true, server will accept connections from any source
415 ## (with the correct destination port).
418 ## @param postgresql.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
420 allowExternalEgress: true
421 ## @param postgresql.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
431 ## - matchExpressions:
437 ## @param postgresql.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
447 ## - matchExpressions:
454 ## @param postgresql.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
455 ## @param postgresql.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
457 ingressNSMatchLabels: {}
458 ingressNSPodMatchLabels: {}
459 ## Pod disruption budget configuration
460 ## @param postgresql.pdb.create Specifies whether to create a Pod disruption budget for PostgreSQL with Repmgr
461 ## @param postgresql.pdb.minAvailable Minimum number / percentage of pods that should remain scheduled
462 ## @param postgresql.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `postgresql.pdb.minAvailable` and `postgresql.pdb.maxUnavailable` are empty.
468 ## PostgreSQL authentication parameters
469 ## @param postgresql.username PostgreSQL username
470 ## @param postgresql.password PostgreSQL password
471 ## @param postgresql.database PostgreSQL database
476 ## @param postgresql.existingSecret PostgreSQL password using existing secret
479 ## @param postgresql.postgresPassword PostgreSQL password for the `postgres` user when `username` is not `postgres`
482 ## @param postgresql.usePasswordFiles Set to `true` to mount PostgreSQL secret as a file instead of passing environment variable
484 usePasswordFiles: true
485 ## @param postgresql.pgHbaTrustAll Configures PostgreSQL HBA to trust every user
488 ## @param postgresql.syncReplication Enable synchronous replication synchronous, waiting until data is synchronized in every replica before other queries can be run
489 ## This ensures the data availability at the expenses of speed
491 syncReplication: false
492 ## @param postgresql.syncReplicationMode This specifies the method to choose synchronous standbys from the listed servers. Valid values: empty, FIRST, ANY.
493 ## ref: https://www.postgresql.org/docs/current/runtime-config-replication.html#GUC-SYNCHRONOUS-STANDBY-NAMES
495 syncReplicationMode: ""
496 ## Repmgr configuration parameters
497 ## @param postgresql.repmgrUsername PostgreSQL Repmgr username
498 ## @param postgresql.repmgrPassword PostgreSQL Repmgr password
499 ## @param postgresql.repmgrDatabase PostgreSQL Repmgr database
500 ## @param postgresql.repmgrUsePassfile Configure Repmgr to use `passfile` instead of `password` vars*:*:*:username:password"
501 ## @param postgresql.repmgrPassfilePath Custom path where `passfile` will be stored
502 ## @param postgresql.repmgrLogLevel Repmgr log level (DEBUG, INFO, NOTICE, WARNING, ERROR, ALERT, CRIT or EMERG)
503 ## @param postgresql.repmgrConnectTimeout Repmgr backend connection timeout (in seconds)
504 ## @param postgresql.repmgrReconnectAttempts Repmgr backend reconnection attempts
505 ## @param postgresql.repmgrReconnectInterval Repmgr backend reconnection interval (in seconds)
506 ## @param postgresql.repmgrFenceOldPrimary Set if fencing of old primary in multiple primary situation is desired
507 ## @param postgresql.repmgrChildNodesCheckInterval Repmgr child nodes check interval (in seconds)
508 ## @param postgresql.repmgrChildNodesConnectedMinCount Repmgr minimum number of connected child nodes before being considered as failed primary for fencing
509 ## @param postgresql.repmgrChildNodesDisconnectTimeout Repmgr time before node will be fenced when insufficient child nodes are detected (in seconds)
510 ## @param postgresql.upgradeRepmgrExtension Upgrade Repmgr extension in the database
512 repmgrUsername: repmgr
514 repmgrDatabase: repmgr
515 repmgrUsePassfile: true
516 repmgrPassfilePath: ""
517 repmgrLogLevel: NOTICE
518 repmgrConnectTimeout: 5
519 repmgrReconnectAttempts: 2
520 repmgrReconnectInterval: 3
521 repmgrFenceOldPrimary: false
522 repmgrChildNodesCheckInterval: 5
523 repmgrChildNodesConnectedMinCount: 1
524 repmgrChildNodesDisconnectTimeout: 30
525 upgradeRepmgrExtension: false
526 ## @param postgresql.usePgRewind Use pg_rewind for standby failover (experimental)
532 ## @param postgresql.audit.logHostname Add client hostnames to the log file
535 ## @param postgresql.audit.logConnections Add client log-in operations to the log file
537 logConnections: false
538 ## @param postgresql.audit.logDisconnections Add client log-outs operations to the log file
540 logDisconnections: false
541 ## @param postgresql.audit.pgAuditLog Add operations to log using the pgAudit extension
544 ## @param postgresql.audit.pgAuditLogCatalog Log catalog using pgAudit
546 pgAuditLogCatalog: "off"
547 ## @param postgresql.audit.clientMinMessages Message log level to share with the user
549 clientMinMessages: error
550 ## @param postgresql.audit.logLinePrefix Template string for the log line prefix
553 ## @param postgresql.audit.logTimezone Timezone for the log timestamps
556 ## @param postgresql.sharedPreloadLibraries Shared preload libraries (comma-separated list)
558 sharedPreloadLibraries: "pgaudit, repmgr"
559 ## @param postgresql.maxConnections Maximum total connections
562 ## @param postgresql.postgresConnectionLimit Maximum connections for the postgres user
564 postgresConnectionLimit: ""
565 ## @param postgresql.dbUserConnectionLimit Maximum connections for the created user
567 dbUserConnectionLimit: ""
568 ## @param postgresql.tcpKeepalivesInterval TCP keepalives interval
570 tcpKeepalivesInterval: ""
571 ## @param postgresql.tcpKeepalivesIdle TCP keepalives idle
573 tcpKeepalivesIdle: ""
574 ## @param postgresql.tcpKeepalivesCount TCP keepalives count
576 tcpKeepalivesCount: ""
577 ## @param postgresql.statementTimeout Statement timeout
580 ## @param postgresql.pghbaRemoveFilters Comma-separated list of patterns to remove from the pg_hba.conf file
581 ## (cannot be used with custom pg_hba.conf)
583 pghbaRemoveFilters: ""
584 ## @param postgresql.extraInitContainers Extra init containers
586 ## extraInitContainers:
587 ## - name: do-something
589 ## command: ['do', 'something']
591 extraInitContainers: []
592 ## @param postgresql.repmgrConfiguration Repmgr configuration
593 ## You can use this parameter to specify the content for repmgr.conf
594 ## Otherwise, a repmgr.conf will be generated based on the environment variables
596 ## repmgrConfiguration: |-
597 ## ssh_options='-o "StrictHostKeyChecking no" -v'
598 ## use_replication_slots='1'
601 repmgrConfiguration: ""
602 ## @param postgresql.configuration PostgreSQL configuration
603 ## You can use this parameter to specify the content for postgresql.conf
604 ## Otherwise, a postgresql.conf will be generated based on the environment variables
607 ## listen_addresses = '*'
612 ## @param postgresql.pgHbaConfiguration PostgreSQL client authentication configuration
613 ## You can use this parameter to specify the content for pg_hba.conf
614 ## Otherwise, a pg_hba.conf will be generated based on the environment variables
616 ## pgHbaConfiguration: |-
617 ## host all repmgr 0.0.0.0/0 md5
618 ## host repmgr repmgr 0.0.0.0/0 md
621 pgHbaConfiguration: ""
622 ## @param postgresql.configurationCM Name of existing ConfigMap with configuration files
623 ## NOTE: This will override postgresql.repmgrConfiguration, postgresql.configuration and postgresql.pgHbaConfiguration
626 ## @param postgresql.extendedConf Extended PostgreSQL configuration (requires `volumePermissions.enabled` to be `true`)
627 ## Similar to postgresql.configuration, but _appended_ to the main configuration
630 ## deadlock_timeout = 1s
631 ## max_locks_per_transaction = 64
635 ## @param postgresql.extendedConfCM ConfigMap with PostgreSQL extended configuration (requires `volumePermissions.enabled` to be `true`)
636 ## NOTE: This will override postgresql.extendedConf
639 ## @param postgresql.initdbScripts Dictionary of initdb scripts
640 ## Specify dictionary of scripts to be run at first boot
641 ## The allowed extensions are `.sh`, `.sql` and `.sql.gz`
644 ## my_init_script.sh: |
646 ## echo "Do something."
649 ## @param postgresql.initdbScriptsCM ConfigMap with scripts to be run at first boot
650 ## NOTE: This will override initdbScripts
653 ## @param postgresql.initdbScriptsSecret Secret with scripts to be run at first boot
654 ## Note: can be used with initdbScriptsCM or initdbScripts
656 initdbScriptsSecret: ""
660 ## @param postgresql.tls.enabled Enable TLS traffic support for end-client connections
663 ## @param postgresql.tls.preferServerCiphers Whether to use the server's TLS cipher preferences rather than the client's
665 preferServerCiphers: true
666 ## @param postgresql.tls.certificatesSecret Name of an existing secret that contains the certificates
668 certificatesSecret: ""
669 ## @param postgresql.tls.certFilename Certificate filename
672 ## @param postgresql.tls.certKeyFilename Certificate key filename
675 ## @param postgresql.preStopDelayAfterPgStopSeconds Minimal number of seconds preStop hook waits after PostgreSQL instance is stopped
676 ## It is used to delay PostgreSQL pod termination. It gives Pgpool-II time to detect that node goes down. Down up cycle in
677 ## Pgpool-II makes sure PostgreSQL node is registered correctly in Pgpool-II (mainly primary flag).
678 ## Note: it could be replaced with .spec.minReadySeconds for Kubernetes v1.25 or later once
679 ## https://github.com/kubernetes/kubernetes/issues/112066 is fixed.
680 ## Note: must be set to lower value than terminationGracePeriodSeconds (defaults to 30) so that preStop hook finishes
681 ## before grace period expires
683 preStopDelayAfterPgStopSeconds: 25
684 ## @param postgresql.headlessWithNotReadyAddresses set postgres headless service into publishNotReadyAddresses mode
685 ## It can be used to minimize/eliminate Pgpool-II restarts during PostgreSQL rolling upgrades or edge-case situations like
686 ## network split. It expects that no other external component will use PostgreSQL headless service to connect or that
687 ## such component implements re-try logic.
688 ## This mode also enables enriched readiness probe implementation which delays first switch of POD to READY state
689 ## after start/restart of container. It gives Pgpool-II time switch node back from DOWN to UP state during rolling
692 headlessWithNotReadyAddresses: false
694 ## @param witness.create Create PostgreSQL witness nodes
697 ## @param witness.labels Labels to add to the StatefulSet. Evaluated as template
700 ## @param witness.podLabels Labels to add to the StatefulSet pods. Evaluated as template
703 ## @param witness.replicaCount Number of replicas to deploy.
706 ## @param witness.updateStrategy.type Postgresql StatefulSet strategy type
707 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
710 ## type: RollingUpdate
713 ## maxUnavailable: 25%
717 ## @param witness.containerPorts.postgresql PostgreSQL witness port
721 ## @param witness.automountServiceAccountToken Mount Service Account token in pod
723 automountServiceAccountToken: false
724 ## @param witness.hostAliases Deployment pod host aliases
725 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
728 ## @param witness.hostNetwork Specify if host network should be enabled for PostgreSQL witness pod
731 ## @param witness.hostIPC Specify if host IPC should be enabled for PostgreSQL witness pod
734 ## @param witness.podAnnotations Additional pod annotations
735 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
738 ## @param witness.podAffinityPreset PostgreSQL witness pod affinity preset. Ignored if `witness.affinity` is set. Allowed values: `soft` or `hard`
739 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
741 podAffinityPreset: ""
742 ## @param witness.podAntiAffinityPreset PostgreSQL witness pod anti-affinity preset. Ignored if `witness.affinity` is set. Allowed values: `soft` or `hard`
743 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
745 podAntiAffinityPreset: soft
746 ## PostgreSQL witness node affinity preset
747 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
750 ## @param witness.nodeAffinityPreset.type PostgreSQL witness node affinity preset type. Ignored if `witness.affinity` is set. Allowed values: `soft` or `hard`
753 ## @param witness.nodeAffinityPreset.key PostgreSQL witness node label key to match Ignored if `witness.affinity` is set.
755 ## key: "kubernetes.io/e2e-az-name"
758 ## @param witness.nodeAffinityPreset.values PostgreSQL witness node label values to match. Ignored if `witness.affinity` is set.
765 ## @param witness.affinity Affinity for PostgreSQL witness pods assignment
766 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
767 ## Note: witness.podAffinityPreset, witness.podAntiAffinityPreset, and witness.nodeAffinityPreset will be ignored when it's set
770 ## @param witness.nodeSelector Node labels for PostgreSQL witness pods assignment
771 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
774 ## @param witness.tolerations Tolerations for PostgreSQL witness pods assignment
775 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
778 ## @param witness.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
779 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
781 topologySpreadConstraints: []
782 ## @param witness.priorityClassName Pod priority class
783 ## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
785 priorityClassName: ""
786 ## @param witness.schedulerName Use an alternate scheduler, e.g. "stork".
787 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
790 ## @param witness.terminationGracePeriodSeconds Seconds PostgreSQL witness pod needs to terminate gracefully
791 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
793 terminationGracePeriodSeconds: ""
794 ## K8s Security Context
795 ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
796 ## @param witness.podSecurityContext.enabled Enable security context for PostgreSQL witness with Repmgr
797 ## @param witness.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
798 ## @param witness.podSecurityContext.sysctls Set kernel settings using the sysctl interface
799 ## @param witness.podSecurityContext.supplementalGroups Set filesystem extra groups
800 ## @param witness.podSecurityContext.fsGroup Group ID for the PostgreSQL witness with Repmgr filesystem
804 fsGroupChangePolicy: Always
806 supplementalGroups: []
808 ## Container Security Context
809 ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
810 ## @param witness.containerSecurityContext.enabled Enabled containers' Security Context
811 ## @param witness.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
812 ## @param witness.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
813 ## @param witness.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
814 ## @param witness.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
815 ## @param witness.containerSecurityContext.privileged Set container's Security Context privileged
816 ## @param witness.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
817 ## @param witness.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
818 ## @param witness.containerSecurityContext.capabilities.drop List of capabilities to be dropped
819 ## @param witness.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
821 ## containerSecurityContext:
825 ## readOnlyRootFilesystem: false
827 containerSecurityContext:
834 readOnlyRootFilesystem: true
835 allowPrivilegeEscalation: false
839 type: "RuntimeDefault"
840 ## @param witness.command Override default container command (useful when using custom images)
843 ## @param witness.args Override default container args (useful when using custom images)
846 ## @param witness.lifecycleHooks LifecycleHook to set additional configuration at startup, e.g. LDAP settings via REST API. Evaluated as a template
849 ## @param witness.extraEnvVars Array containing extra environment variables
851 ## - name: PG_EXPORTER_DISABLE_DEFAULT_METRICS
855 ## @param witness.extraEnvVarsCM ConfigMap with extra environment variables
858 ## @param witness.extraEnvVarsSecret Secret with extra environment variables
860 extraEnvVarsSecret: ""
861 ## @param witness.extraVolumes Extra volumes to add to the deployment
864 ## @param witness.extraVolumeMounts Extra volume mounts to add to the container. Normally used with `extraVolumes`.
866 extraVolumeMounts: []
867 ## @param witness.initContainers Extra init containers to add to the deployment
870 ## @param witness.sidecars Extra sidecar containers to add to the deployment
873 ## PostgreSQL containers' resource requests and limits
874 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
875 ## We usually recommend not to specify default resources and to leave this as a conscious
876 ## choice for the user. This also increases chances charts run on environments with little
877 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
878 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
879 ## @param witness.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if witness.resources is set (witness.resources is recommended for production).
881 resourcesPreset: "micro"
882 ## @param witness.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
893 ## PostgreSQL container's liveness probe
894 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
895 ## @param witness.livenessProbe.enabled Enable livenessProbe
896 ## @param witness.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
897 ## @param witness.livenessProbe.periodSeconds Period seconds for livenessProbe
898 ## @param witness.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
899 ## @param witness.livenessProbe.failureThreshold Failure threshold for livenessProbe
900 ## @param witness.livenessProbe.successThreshold Success threshold for livenessProbe
904 initialDelaySeconds: 30
909 ## PostgreSQL container's readiness probe
910 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
911 ## @param witness.readinessProbe.enabled Enable readinessProbe
912 ## @param witness.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
913 ## @param witness.readinessProbe.periodSeconds Period seconds for readinessProbe
914 ## @param witness.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
915 ## @param witness.readinessProbe.failureThreshold Failure threshold for readinessProbe
916 ## @param witness.readinessProbe.successThreshold Success threshold for readinessProbe
920 initialDelaySeconds: 5
925 ## PostgreSQL container's startup probe
926 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
927 ## @param witness.startupProbe.enabled Enable startupProbe
928 ## @param witness.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
929 ## @param witness.startupProbe.periodSeconds Period seconds for startupProbe
930 ## @param witness.startupProbe.timeoutSeconds Timeout seconds for startupProbe
931 ## @param witness.startupProbe.failureThreshold Failure threshold for startupProbe
932 ## @param witness.startupProbe.successThreshold Success threshold for startupProbe
936 initialDelaySeconds: 5
941 ## @param witness.customLivenessProbe Override default liveness probe
943 customLivenessProbe: {}
944 ## @param witness.customReadinessProbe Override default readiness probe
946 customReadinessProbe: {}
947 ## @param witness.customStartupProbe Override default startup probe
949 customStartupProbe: {}
950 ## Pod disruption budget configuration
951 ## @param witness.pdb.create Specifies whether to create a Pod disruption budget for PostgreSQL witness with Repmgr
952 ## @param witness.pdb.minAvailable Minimum number / percentage of pods that should remain scheduled
953 ## @param witness.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `witness.pdb.minAvailable` and `witness.pdb.maxUnavailable` are empty.
959 ## @param witness.upgradeRepmgrExtension Upgrade repmgr extension in the database
961 upgradeRepmgrExtension: false
962 ## @param witness.pgHbaTrustAll Configures PostgreSQL HBA to trust every user
965 ## Repmgr configuration parameters
966 ## @param witness.repmgrLogLevel Repmgr log level (DEBUG, INFO, NOTICE, WARNING, ERROR, ALERT, CRIT or EMERG)
967 ## @param witness.repmgrConnectTimeout Repmgr backend connection timeout (in seconds)
968 ## @param witness.repmgrReconnectAttempts Repmgr backend reconnection attempts
969 ## @param witness.repmgrReconnectInterval Repmgr backend reconnection interval (in seconds)
971 repmgrLogLevel: NOTICE
972 repmgrConnectTimeout: 5
973 repmgrReconnectAttempts: 2
974 repmgrReconnectInterval: 3
978 ## @param witness.audit.logHostname Add client hostnames to the log file
981 ## @param witness.audit.logConnections Add client log-in operations to the log file
983 logConnections: false
984 ## @param witness.audit.logDisconnections Add client log-outs operations to the log file
986 logDisconnections: false
987 ## @param witness.audit.pgAuditLog Add operations to log using the pgAudit extension
990 ## @param witness.audit.pgAuditLogCatalog Log catalog using pgAudit
992 pgAuditLogCatalog: "off"
993 ## @param witness.audit.clientMinMessages Message log level to share with the user
995 clientMinMessages: error
996 ## @param witness.audit.logLinePrefix Template string for the log line prefix
999 ## @param witness.audit.logTimezone Timezone for the log timestamps
1002 ## @param witness.maxConnections Maximum total connections
1005 ## @param witness.postgresConnectionLimit Maximum connections for the postgres user
1007 postgresConnectionLimit: ""
1008 ## @param witness.dbUserConnectionLimit Maximum connections for the created user
1010 dbUserConnectionLimit: ""
1011 ## @param witness.tcpKeepalivesInterval TCP keepalives interval
1013 tcpKeepalivesInterval: ""
1014 ## @param witness.tcpKeepalivesIdle TCP keepalives idle
1016 tcpKeepalivesIdle: ""
1017 ## @param witness.tcpKeepalivesCount TCP keepalives count
1019 tcpKeepalivesCount: ""
1020 ## @param witness.statementTimeout Statement timeout
1022 statementTimeout: ""
1023 ## @param witness.pghbaRemoveFilters Comma-separated list of patterns to remove from the pg_hba.conf file
1024 ## (cannot be used with custom pg_hba.conf)
1026 pghbaRemoveFilters: ""
1027 ## @param witness.extraInitContainers Extra init containers
1029 ## extraInitContainers:
1030 ## - name: do-something
1032 ## command: ['do', 'something']
1034 extraInitContainers: []
1035 ## @param witness.repmgrConfiguration Repmgr configuration
1036 ## You can use this parameter to specify the content for repmgr.conf
1037 ## Otherwise, a repmgr.conf will be generated based on the environment variables
1039 ## repmgrConfiguration: |-
1040 ## ssh_options='-o "StrictHostKeyChecking no" -v'
1041 ## use_replication_slots='1'
1044 repmgrConfiguration: ""
1045 ## @param witness.configuration PostgreSQL configuration
1046 ## You can use this parameter to specify the content for witness.conf
1047 ## Otherwise, a repmgr.conf will be generated based on the environment variables
1049 ## configuration: |-
1050 ## listen_addresses = '*'
1055 ## @param witness.pgHbaConfiguration PostgreSQL client authentication configuration
1056 ## You can use this parameter to specify the content for pg_hba.conf
1057 ## Otherwise, a repmgr.conf will be generated based on the environment variables
1059 ## pgHbaConfiguration: |-
1060 ## host all repmgr 0.0.0.0/0 md5
1061 ## host repmgr repmgr 0.0.0.0/0 md
1064 pgHbaConfiguration: ""
1065 ## @param witness.configurationCM Name of existing ConfigMap with configuration files
1066 ## NOTE: This will override witness.repmgrConfiguration, witness.configuration and witness.pgHbaConfiguration
1069 ## @param witness.extendedConf Extended PostgreSQL configuration (requires `volumePermissions.enabled` to be `true`)
1070 ## Similar to witness.configuration, but _appended_ to the main configuration
1073 ## deadlock_timeout = 1s
1074 ## max_locks_per_transaction = 64
1078 ## @param witness.extendedConfCM ConfigMap with PostgreSQL extended configuration (requires `volumePermissions.enabled` to be `true`)
1079 ## NOTE: This will override witness.extendedConf
1082 ## @param witness.initdbScripts Dictionary of initdb scripts
1083 ## Specify dictionary of scripts to be run at first boot
1084 ## The allowed extensions are `.sh`, `.sql` and `.sql.gz`
1087 ## my_init_script.sh: |
1089 ## echo "Do something."
1092 ## @param witness.initdbScriptsCM ConfigMap with scripts to be run at first boot
1093 ## NOTE: This will override initdbScripts
1096 ## @param witness.initdbScriptsSecret Secret with scripts to be run at first boot
1097 ## Note: can be used with initdbScriptsCM or initdbScripts
1099 initdbScriptsSecret: ""
1100## @section Pgpool-II parameters
1102## Pgpool-II parameters
1105 ## Iamguarded Pgpool-II image
1106 ## @param pgpool.image.registry [default: REGISTRY_NAME] Pgpool-II image registry
1107 ## @param pgpool.image.repository [default: REPOSITORY_NAME/pgpool] Pgpool-II image repository
1108 ## @skip pgpool.image.tag Pgpool-II image tag
1109 ## @param pgpool.image.digest Pgpool-II image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1110 ## @param pgpool.image.pullPolicy Pgpool-II image pull policy
1111 ## @param pgpool.image.pullSecrets Specify docker-registry secret names as an array
1112 ## @param pgpool.image.debug Specify if debug logs should be enabled
1116 repository: chainguard-private/pgpool2-iamguarded
1118 digest: sha256:d99a73502e275aa954582c6544cd19e9ce1fdd129cd6db98f53eabeb78f9a369
1119 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1121 pullPolicy: IfNotPresent
1122 ## Optionally specify an array of imagePullSecrets.
1123 ## Secrets must be manually created in the namespace.
1124 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1127 ## - myRegistryKeySecretName
1130 ## Set to true if you would like to see extra information on logs
1133 ## @param pgpool.customUsers.usernames Comma or semicolon separated list of additional users that will be performing connections to the database using pgpool.
1134 ## @param pgpool.customUsers.passwords Comma or semicolon separated list of the associated passwords for the users above. Must have the same number of elements as the usernames list.
1135 ## Use this property in order to create new user/password entries that will be appended to the "pgpool_passwd" file.
1138 ## usernames: "user01;user02"
1139 ## passwords: "pass01;pass02"
1143 ## @param pgpool.automountServiceAccountToken Mount Service Account token in pod
1145 automountServiceAccountToken: false
1146 ## @param pgpool.hostAliases Deployment pod host aliases
1147 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1150 ## @param pgpool.customUsersSecret Name of a secret containing the usernames and passwords of accounts that will be added to pgpool_passwd
1151 ## The secret must contain the keys "usernames" and "passwords" respectively.
1153 customUsersSecret: ""
1154 ## @param pgpool.existingSecret Pgpool-II admin password using existing secret
1157 ## @param pgpool.labels Labels to add to the Deployment. Evaluated as template
1160 ## @param pgpool.podLabels Labels to add to the pods. Evaluated as template
1163 ## @param pgpool.serviceLabels Labels to add to the service. Evaluated as template
1166 ## @param pgpool.serviceAnnotations Provide any additional annotations for Pgpool-II service
1168 serviceAnnotations: {}
1169 ## @param pgpool.customLivenessProbe Override default liveness probe
1171 customLivenessProbe: {}
1172 ## @param pgpool.customReadinessProbe Override default readiness probe
1174 customReadinessProbe: {}
1175 ## @param pgpool.customStartupProbe Override default startup probe
1177 customStartupProbe: {}
1178 ## @param pgpool.command Override default container command (useful when using custom images)
1181 ## @param pgpool.args Override default container args (useful when using custom images)
1184 ## @param pgpool.lifecycleHooks LifecycleHook to set additional configuration at startup, e.g. LDAP settings via REST API. Evaluated as a template
1187 ## @param pgpool.extraEnvVars Array containing extra environment variables
1189 ## - name: BEARER_AUTH
1193 ## @param pgpool.extraEnvVarsCM ConfigMap with extra environment variables
1196 ## @param pgpool.extraEnvVarsSecret Secret with extra environment variables
1198 extraEnvVarsSecret: ""
1199 ## @param pgpool.extraVolumes Extra volumes to add to the deployment
1202 ## @param pgpool.extraVolumeMounts Extra volume mounts to add to the container. Normally used with `extraVolumes`
1204 extraVolumeMounts: []
1205 ## @param pgpool.initContainers Extra init containers to add to the deployment
1208 ## @param pgpool.sidecars Extra sidecar containers to add to the deployment
1211 ## @param pgpool.replicaCount The number of replicas to deploy
1214 ## @param pgpool.podAnnotations Additional pod annotations
1215 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1218 ## @param pgpool.priorityClassName Pod priority class
1219 ## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1221 priorityClassName: ""
1222 ## @param pgpool.schedulerName Use an alternate scheduler, e.g. "stork".
1223 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1226 ## @param pgpool.terminationGracePeriodSeconds Seconds pgpool pod needs to terminate gracefully
1227 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1229 terminationGracePeriodSeconds: ""
1230 ## @param pgpool.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1231 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1233 topologySpreadConstraints: []
1234 ## @param pgpool.podAffinityPreset Pgpool-II pod affinity preset. Ignored if `pgpool.affinity` is set. Allowed values: `soft` or `hard`
1235 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1237 podAffinityPreset: ""
1238 ## @param pgpool.podAntiAffinityPreset Pgpool-II pod anti-affinity preset. Ignored if `pgpool.affinity` is set. Allowed values: `soft` or `hard`
1239 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1241 podAntiAffinityPreset: soft
1242 ## Pgpool-II node affinity preset
1243 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1246 ## @param pgpool.nodeAffinityPreset.type Pgpool-II node affinity preset type. Ignored if `pgpool.affinity` is set. Allowed values: `soft` or `hard`
1249 ## @param pgpool.nodeAffinityPreset.key Pgpool-II node label key to match Ignored if `pgpool.affinity` is set.
1251 ## key: "kubernetes.io/e2e-az-name"
1254 ## @param pgpool.nodeAffinityPreset.values Pgpool-II node label values to match. Ignored if `pgpool.affinity` is set.
1261 ## @param pgpool.affinity Affinity for Pgpool-II pods assignment
1262 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1263 ## Note: pgpool.podAffinityPreset, pgpool.podAntiAffinityPreset, and pgpool.nodeAffinityPreset will be ignored when it's set
1266 ## @param pgpool.nodeSelector Node labels for Pgpool-II pods assignment
1267 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1270 ## @param pgpool.tolerations Tolerations for Pgpool-II pods assignment
1271 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1274 ## K8s Security Context
1275 ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1276 ## @param pgpool.podSecurityContext.enabled Enable security context for Pgpool-II
1277 ## @param pgpool.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1278 ## @param pgpool.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1279 ## @param pgpool.podSecurityContext.supplementalGroups Set filesystem extra groups
1280 ## @param pgpool.podSecurityContext.fsGroup Group ID for the Pgpool-II filesystem
1284 fsGroupChangePolicy: Always
1286 supplementalGroups: []
1288 ## Container Security Context
1289 ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1290 ## @param pgpool.containerSecurityContext.enabled Enabled containers' Security Context
1291 ## @param pgpool.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1292 ## @param pgpool.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1293 ## @param pgpool.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1294 ## @param pgpool.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1295 ## @param pgpool.containerSecurityContext.privileged Set container's Security Context privileged
1296 ## @param pgpool.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1297 ## @param pgpool.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1298 ## @param pgpool.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1299 ## @param pgpool.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1301 ## containerSecurityContext:
1304 ## drop: ["NET_RAW"]
1305 ## readOnlyRootFilesystem: false
1307 containerSecurityContext:
1314 readOnlyRootFilesystem: true
1315 allowPrivilegeEscalation: false
1319 type: "RuntimeDefault"
1320 ## Pgpool-II containers' resource requests and limits
1321 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1322 ## We usually recommend not to specify default resources and to leave this as a conscious
1323 ## choice for the user. This also increases chances charts run on environments with little
1324 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1325 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1326 ## @param pgpool.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if pgpool.resources is set (pgpool.resources is recommended for production).
1328 resourcesPreset: "micro"
1329 ## @param pgpool.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1340 ## Pgpool-II container's liveness probe
1341 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1342 ## @param pgpool.livenessProbe.enabled Enable livenessProbe
1343 ## @param pgpool.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1344 ## @param pgpool.livenessProbe.periodSeconds Period seconds for livenessProbe
1345 ## @param pgpool.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1346 ## @param pgpool.livenessProbe.failureThreshold Failure threshold for livenessProbe
1347 ## @param pgpool.livenessProbe.successThreshold Success threshold for livenessProbe
1351 initialDelaySeconds: 30
1356 ## Pgpool-II container's readiness probe
1357 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1358 ## @param pgpool.readinessProbe.enabled Enable readinessProbe
1359 ## @param pgpool.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1360 ## @param pgpool.readinessProbe.periodSeconds Period seconds for readinessProbe
1361 ## @param pgpool.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1362 ## @param pgpool.readinessProbe.failureThreshold Failure threshold for readinessProbe
1363 ## @param pgpool.readinessProbe.successThreshold Success threshold for readinessProbe
1367 initialDelaySeconds: 5
1372 ## Pgpool-II container's startup probe
1373 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1374 ## @param pgpool.startupProbe.enabled Enable startupProbe
1375 ## @param pgpool.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1376 ## @param pgpool.startupProbe.periodSeconds Period seconds for startupProbe
1377 ## @param pgpool.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1378 ## @param pgpool.startupProbe.failureThreshold Failure threshold for startupProbe
1379 ## @param pgpool.startupProbe.successThreshold Success threshold for startupProbe
1383 initialDelaySeconds: 5
1387 failureThreshold: 10
1389 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1392 ## @param pgpool.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1395 ## @param pgpool.networkPolicy.allowExternal Don't require server label for connections
1396 ## The Policy model to apply. When set to false, only pods with the correct
1397 ## server label will have network access to the ports server is listening
1398 ## on. When true, server will accept connections from any source
1399 ## (with the correct destination port).
1402 ## @param pgpool.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1404 allowExternalEgress: true
1405 ## @param pgpool.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1415 ## - matchExpressions:
1421 ## @param pgpool.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1431 ## - matchExpressions:
1438 ## @param pgpool.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
1439 ## @param pgpool.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
1441 ingressNSMatchLabels: {}
1442 ingressNSPodMatchLabels: {}
1443 ## Pod disruption budget configuration
1444 ## @param pgpool.pdb.create Specifies whether a Pod disruption budget should be created for Pgpool-II pods
1445 ## @param pgpool.pdb.minAvailable Minimum number / percentage of pods that should remain scheduled
1446 ## @param pgpool.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pgpool.pdb.minAvailable` and `pgpool.pdb.maxUnavailable` are empty.
1452 ## @param pgpool.updateStrategy Strategy used to replace old Pods by new ones
1453 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
1456 ## @param pgpool.containerPorts.postgresql Pgpool-II port
1460 ## @param pgpool.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
1463 ## Credentials for the Pgpool-II
1464 ## @param pgpool.adminUsername Pgpool-II Admin username
1465 ## @param pgpool.adminPassword Pgpool-II Admin password
1466 ## @param pgpool.srCheckUsername Pgpool-II Streaming Replication Check username
1467 ## @param pgpool.srCheckPassword Pgpool-II Streaming Replication Check password
1468 ## @param pgpool.srCheckDatabase Name of the database to perform Streaming Replication Check
1470 adminUsername: admin
1472 srCheckUsername: "sr_check_user"
1474 srCheckDatabase: postgres
1475 ## @param pgpool.usePasswordFiles Set to `true` to mount pgpool secret as a file instead of passing environment variable
1477 usePasswordFiles: true
1478 ## Authentication method for pgpool container (PGPOOL_AUTHENTICATION_METHOD)
1479 ## @param pgpool.authenticationMethod Pgpool authentication method. Use 'md5' for PSQL < 14.
1481 authenticationMethod: scram-sha-256
1482 ## @param pgpool.logConnections Log all client connections (PGPOOL_ENABLE_LOG_CONNECTIONS)
1484 logConnections: false
1485 ## @param pgpool.logHostname Log the client hostname instead of IP address (PGPOOL_ENABLE_LOG_HOSTNAME)
1488 ## @param pgpool.logPcpProcesses Log PCP processes (PGPOOL_ENABLE_LOG_PCP_PROCESSES)
1490 logPcpProcesses: true
1491 ## @param pgpool.logPerNodeStatement Log every SQL statement for each DB node separately (PGPOOL_ENABLE_LOG_PER_NODE_STATEMENT)
1493 logPerNodeStatement: false
1494 ## @param pgpool.logLinePrefix Format of the log entry lines (PGPOOL_LOG_LINE_PREFIX)
1495 ## ref: https://www.pgpool.net/docs/latest/en/html/runtime-config-logging.html
1498 ## @param pgpool.clientMinMessages Log level for clients
1500 clientMinMessages: error
1501 ## @param pgpool.numInitChildren The number of preforked Pgpool-II server processes. It is also the concurrent
1502 ## connections limit to Pgpool-II from clients. Must be a positive integer. (PGPOOL_NUM_INIT_CHILDREN)
1505 ## @param pgpool.reservedConnections Number of reserved connections. When zero, excess connection block. When non-zero, excess connections are refused with an error message.
1506 ## When this parameter is set to 1 or greater, incoming connections from clients are not accepted with error message
1507 ## "Sorry, too many clients already", rather than blocked if the number of current connections from clients is more than
1508 ## (num_init_children - reserved_connections).
1510 reservedConnections: 1
1511 ## @param pgpool.maxPool The maximum number of cached connections in each child process (PGPOOL_MAX_POOL)
1514 ## @param pgpool.childMaxConnections The maximum number of client connections in each child process (PGPOOL_CHILD_MAX_CONNECTIONS)
1516 childMaxConnections: ""
1517 ## @param pgpool.childLifeTime The time in seconds to terminate a Pgpool-II child process if it remains idle (PGPOOL_CHILD_LIFE_TIME)
1520 ## @param pgpool.clientIdleLimit The time in seconds to disconnect a client if it remains idle since the last query (PGPOOL_CLIENT_IDLE_LIMIT)
1523 ## @param pgpool.connectionLifeTime The time in seconds to terminate the cached connections to the PostgreSQL backend (PGPOOL_CONNECTION_LIFE_TIME)
1525 connectionLifeTime: ""
1526 ## @param pgpool.useConnectionCache Use connection cache (PGPOOL_ENABLE_CONNECTION_CACHE)
1528 useConnectionCache: true
1529 ## @param pgpool.useLoadBalancing Use Pgpool-II Load-Balancing
1531 useLoadBalancing: true
1532 ## @param pgpool.disableLoadBalancingOnWrite LoadBalancer on write actions behavior
1533 ## one of: [off, transaction, trans_transaction, always]
1535 disableLoadBalancingOnWrite: transaction
1536 ## @param pgpool.configuration Pgpool-II configuration
1537 ## You can use this parameter to specify the content for pgpool.conf
1538 ## Otherwise, a repmgr.conf will be generated based on the environment variables
1540 ## configuration: |-
1541 ## listen_addresses = '*'
1546 ## @param pgpool.poolHbaConfiguration Pgpool-II client authentication configuration
1547 ## You can use this parameter to specify the content for pool_hba.conf
1548 ## Otherwise, a pool_hba.conf will be generated based on the environment variables
1550 ## poolHbaConfiguration: |-
1551 ## host all repmgr 0.0.0.0/0 md5
1552 ## host repmgr repmgr 0.0.0.0/0 md
1555 poolHbaConfiguration: ""
1556 ## @param pgpool.configurationCM ConfigMap with Pgpool-II configuration
1557 ## NOTE: This will override pgpool.configuration and pgpool.poolHbaConfiguration parameters
1560 ## @param pgpool.initdbScripts Dictionary of initdb scripts
1561 ## Specify dictionary of scripts to be run every time Pgpool-II container is initialized
1562 ## The allowed extension is `.sh`
1565 ## my_init_script.sh: |
1567 ## echo "Do something."
1570 ## @param pgpool.initdbScriptsCM ConfigMap with scripts to be run every time Pgpool-II container is initialized
1571 ## NOTE: This will override pgpool.initdbScripts
1574 ## @param pgpool.initdbScriptsSecret Secret with scripts to be run every time Pgpool-II container is initialized
1575 ## Note: can be used with initdbScriptsCM or initdbScripts
1577 initdbScriptsSecret: ""
1579 ## TLS configuration
1582 ## @param pgpool.tls.enabled Enable TLS traffic support for end-client connections
1585 ## @param pgpool.tls.autoGenerated Create self-signed TLS certificates. Currently only supports PEM certificates
1587 autoGenerated: false
1588 ## @param pgpool.tls.preferServerCiphers Whether to use the server's TLS cipher preferences rather than the client's
1590 preferServerCiphers: true
1591 ## @param pgpool.tls.certificatesSecret Name of an existing secret that contains the certificates
1593 certificatesSecret: ""
1594 ## @param pgpool.tls.certFilename Certificate filename
1597 ## @param pgpool.tls.certKeyFilename Certificate key filename
1600 ## @param pgpool.tls.certCAFilename CA Certificate filename
1601 ## If provided, Pgpool-II will authenticate TLS/SSL clients by requesting them a certificate
1602 ## ref: https://www.pgpool.net/docs/latest/en/html/runtime-ssl.html
1605## @section LDAP parameters
1608## @param ldap.enabled Enable LDAP support
1609## @param ldap.existingSecret Name of existing secret to use for LDAP passwords
1610## @param ldap.uri LDAP URL beginning in the form `ldap[s]://<hostname>:<port>`
1611## @param ldap.basedn LDAP base DN
1612## @param ldap.binddn LDAP bind DN
1613## @param ldap.bindpw LDAP bind password
1614## @param ldap.bslookup LDAP base lookup
1615## @param ldap.scope LDAP search scope
1616## @param ldap.searchfilter LDAP search filter
1617## @param ldap.searchmap LDAP search map
1618## @param ldap.tlsReqcert LDAP TLS check on server certificates
1619## @param ldap.nssInitgroupsIgnoreusers LDAP ignored users
1633 nssInitgroupsIgnoreusers: root,nslcd
1634## @section Other Parameters
1636## RBAC configuration
1640 ## @param rbac.create Create Role and RoleBinding (required for PSP to work)
1643 ## @param rbac.rules Custom RBAC rules to set
1655## ServiceAccount configuration
1656## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1659 ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
1662 ## @param serviceAccount.name The name of the ServiceAccount to use.
1663 ## If not set and create is true, a name is generated using the common.names.fullname template
1666 ## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
1669 ## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
1670 ## Can be set to false if pods using this serviceAccount do not need to use K8s API
1672 automountServiceAccountToken: false
1673## Pod Security Policy configuration
1674## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
1675## @param psp.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
1679## @section Metrics parameters
1681## PostgreSQL Prometheus exporter parameters
1684 ## Iamguarded PostgreSQL Prometheus exporter image
1685 ## @param metrics.enabled Enable PostgreSQL Prometheus exporter
1688 ## @param metrics.image.registry [default: REGISTRY_NAME] PostgreSQL Prometheus exporter image registry
1689 ## @param metrics.image.repository [default: REPOSITORY_NAME/postgres-exporter] PostgreSQL Prometheus exporter image repository
1690 ## @skip metrics.image.tag PostgreSQL Prometheus exporter image tag
1691 ## @param metrics.image.digest PostgreSQL Prometheus exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1692 ## @param metrics.image.pullPolicy PostgreSQL Prometheus exporter image pull policy
1693 ## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
1694 ## @param metrics.image.debug Specify if debug logs should be enabled
1698 repository: chainguard-private/prometheus-postgres-exporter-iamguarded
1700 digest: sha256:4b4dbbbf1c62fe94f3b6b6f11ab0eec39254ffa3f1673600ffb7c7295e0034cb
1701 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1703 pullPolicy: IfNotPresent
1704 ## Optionally specify an array of imagePullSecrets.
1705 ## Secrets must be manually created in the namespace.
1706 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1709 ## - myRegistryKeySecretName
1712 ## Set to true if you would like to see extra information on logs
1715 ## K8s Security Context
1716 ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1717 ## @param metrics.podSecurityContext.enabled Enable security context for PostgreSQL Prometheus exporter
1718 ## @param metrics.podSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1719 ## @param metrics.podSecurityContext.runAsUser User ID for the PostgreSQL Prometheus exporter container
1720 ## @param metrics.podSecurityContext.runAsGroup Group ID for the PostgreSQL Prometheus exporter container
1721 ## @param metrics.podSecurityContext.runAsNonRoot Set PostgreSQL Prometheus exporter container's Security Context runAsNonRoot
1722 ## @param metrics.podSecurityContext.seccompProfile.type Set PostgreSQL Prometheus exporter container's Security Context seccompProfile
1731 type: RuntimeDefault
1732 ## Prometheus exporter containers' resource requests and limits
1733 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1734 ## We usually recommend not to specify default resources and to leave this as a conscious
1735 ## choice for the user. This also increases chances charts run on environments with little
1736 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1737 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1738 ## @param metrics.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.resources is set (metrics.resources is recommended for production).
1740 resourcesPreset: "nano"
1741 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1752 ## @param metrics.containerPorts.http Prometheus metrics exporter port
1756 ## Prometheus exporter container's liveness probe
1757 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1758 ## @param metrics.livenessProbe.enabled Enable livenessProbe
1759 ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1760 ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1761 ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1762 ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1763 ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1767 initialDelaySeconds: 30
1772 ## Prometheus exporter container's readiness probe
1773 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1774 ## @param metrics.readinessProbe.enabled Enable readinessProbe
1775 ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1776 ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1777 ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1778 ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1779 ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1783 initialDelaySeconds: 5
1788 ## Prometheus exporter container's startup probes
1789 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1790 ## @param metrics.startupProbe.enabled Enable startupProbe
1791 ## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1792 ## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
1793 ## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1794 ## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
1795 ## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
1799 initialDelaySeconds: 5
1803 failureThreshold: 10
1804 ## @param metrics.customLivenessProbe Override default liveness probe
1806 customLivenessProbe: {}
1807 ## @param metrics.customReadinessProbe Override default readiness probe
1809 customReadinessProbe: {}
1810 ## @param metrics.customStartupProbe Override default startup probe
1812 customStartupProbe: {}
1813 ## Metrics service parameters
1816 ## @param metrics.service.enabled PostgreSQL Prometheus exporter metrics service enabled
1819 ## @param metrics.service.type PostgreSQL Prometheus exporter metrics service type
1822 ## @param metrics.service.ports.metrics PostgreSQL Prometheus exporter metrics service port
1826 ## @param metrics.service.nodePorts.metrics PostgreSQL Prometheus exporter Node Port
1827 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1831 ## @param metrics.service.clusterIP PostgreSQL Prometheus exporter metrics service Cluster IP
1836 ## @param metrics.service.loadBalancerIP PostgreSQL Prometheus exporter service Load Balancer IP
1837 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1840 ## @param metrics.service.loadBalancerSourceRanges PostgreSQL Prometheus exporter service Load Balancer sources
1841 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1843 ## loadBalancerSourceRanges:
1846 loadBalancerSourceRanges: []
1847 ## @param metrics.service.externalTrafficPolicy PostgreSQL Prometheus exporter service external traffic policy
1848 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1850 externalTrafficPolicy: Cluster
1851 ## @param metrics.annotations [object] Annotations for PostgreSQL Prometheus exporter service
1854 prometheus.io/scrape: "true"
1855 prometheus.io/port: "9187"
1856 ## @param metrics.customMetrics Additional custom metrics
1857 ## ref: https://github.com/wrouesnel/postgres_exporter#adding-new-metrics-via-a-config-file
1860 ## query: "SELECT d.datname AS name, CASE WHEN pg_catalog.has_database_privilege(d.datname, 'CONNECT') THEN pg_catalog.pg_database_size(d.datname) ELSE 0 END AS size_bytes FROM pg_catalog.pg_database d where datname not in ('template0', 'template1', 'postgres')"
1864 ## description: "Name of the database"
1867 ## description: "Size of the database in bytes"
1870 ## @param metrics.extraEnvVars Array containing extra environment variables
1872 ## - name: BEARER_AUTH
1876 ## @param metrics.extraEnvVarsCM ConfigMap with extra environment variables
1879 ## @param metrics.extraEnvVarsSecret Secret with extra environment variables
1881 extraEnvVarsSecret: ""
1882 ## Metrics serviceMonitor parameters
1883 ## Enable this if you're using Prometheus Operator
1886 ## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
1889 ## @param metrics.serviceMonitor.namespace Optional namespace which Prometheus is running in
1890 ## Fallback to the prometheus default unless specified
1893 ## @param metrics.serviceMonitor.interval How frequently to scrape metrics (use by default, falling back to Prometheus' default)
1898 ## @param metrics.serviceMonitor.scrapeTimeout Service monitor scrape timeout
1900 ## scrapeTimeout: 10s
1903 ## @param metrics.serviceMonitor.annotations Additional annotations for the ServiceMonitor
1906 ## @param metrics.serviceMonitor.labels Additional labels that can be used so ServiceMonitor will be discovered by Prometheus
1911 prometheus: kube-prometheus
1912 ## @param metrics.serviceMonitor.relabelings ServiceMonitor relabelings. Value is evaluated as a template
1913 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1916 ## @param metrics.serviceMonitor.metricRelabelings ServiceMonitor metricRelabelings. Value is evaluated as a template
1917 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1919 metricRelabelings: []
1920 ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
1923 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1926## @section Volume permissions parameters
1928## Init Container parameters
1929## volumePermissions: Change the owner and group of the persistent volume mountpoint
1932 ## @param volumePermissions.enabled Enable init container to adapt volume permissions
1935 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
1936 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
1937 ## @skip volumePermissions.image.tag Init container volume-permissions image tag
1938 ## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1939 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
1940 ## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
1944 repository: chainguard-private/os-shell-iamguarded
1946 digest: sha256:40960e7e0062af307b2944c9ebfdde9997b9bbd7965de7d9c88988b3d2d6d555
1947 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1949 pullPolicy: IfNotPresent
1950 ## Optionally specify an array of imagePullSecrets.
1951 ## Secrets must be manually created in the namespace.
1952 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1955 ## - myRegistryKeySecretName
1958 ## K8s Security Context
1959 ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1960 ## @param volumePermissions.podSecurityContext.enabled Whether to enable security context for the volume-permissions init container
1961 ## @param volumePermissions.podSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1962 ## @param volumePermissions.podSecurityContext.runAsUser Init container volume-permissions User ID
1963 ## @param volumePermissions.podSecurityContext.runAsGroup Group ID for the init container volume-permissions container
1964 ## @param volumePermissions.podSecurityContext.runAsNonRoot Set Security Context runAsNonRoot for the init container volume-permissions container
1965 ## @param volumePermissions.podSecurityContext.seccompProfile.type Set Security Context seccompProfile for the init container volume-permissions container
1974 type: RuntimeDefault
1975 ## Init container' resource requests and limits
1976 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1977 ## We usually recommend not to specify default resources and to leave this as a conscious
1978 ## choice for the user. This also increases chances charts run on environments with little
1979 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1980 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1981 ## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
1983 resourcesPreset: "nano"
1984 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1995## @section Persistence parameters
1997## Enable persistence using Persistent Volume Claims
1998## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
2001 ## @param persistence.enabled Enable data persistence
2004 ## @param persistence.existingClaim A manually managed Persistent Volume and Claim
2005 ## If defined, PVC must be created manually before volume will be bound.
2006 ## All replicas will share this PVC, using existingClaim with replicas > 1 is only useful in very special use cases.
2007 ## The value is evaluated as a template.
2010 ## @param persistence.storageClass Persistent Volume Storage Class
2011 ## If defined, storageClassName: <storageClass>
2012 ## If set to "-", storageClassName: "", which disables dynamic provisioning
2013 ## If undefined (the default) or set to null, no storageClassName spec is
2014 ## set, choosing the default provisioner.
2017 ## @param persistence.mountPath The path the volume will be mounted at, useful when using different PostgreSQL images.
2019 mountPath: /iamguarded/postgresql
2020 ## @param persistence.accessModes List of access modes of data volume
2024 ## @param persistence.size Persistent Volume Claim size
2027 ## @param persistence.annotations Persistent Volume Claim annotations
2030 ## @param persistence.labels Persistent Volume Claim labels
2033 ## @param persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template)
2039## Persistent Volume Claim Retention Policy
2040## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
2042persistentVolumeClaimRetentionPolicy:
2043 ## @param persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for postgresql Statefulset
2046 ## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
2049 ## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
2052## @section Traffic Exposure parameters
2054## PostgreSQL service parameters
2057 ## @param service.type Kubernetes service type (`ClusterIP`, `NodePort` or `LoadBalancer`)
2060 ## @param service.ports.postgresql PostgreSQL port
2064 ## @param service.portName PostgreSQL service port name
2065 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
2067 portName: postgresql
2068 ## @param service.nodePorts.postgresql Kubernetes service nodePort
2069 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
2073 ## @param service.loadBalancerIP Load balancer IP if service type is `LoadBalancer`
2074 ## Set the LoadBalancer service type to internal only
2075 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
2078 ## @param service.loadBalancerSourceRanges Addresses that are allowed when service is LoadBalancer
2079 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
2081 ## loadBalancerSourceRanges:
2084 loadBalancerSourceRanges: []
2085 ## @param service.clusterIP Set the Cluster IP to use
2086 ## Static clusterIP or None for headless services
2087 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
2092 ## @param service.externalTrafficPolicy Enable client source IP preservation
2093 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
2095 externalTrafficPolicy: Cluster
2096 ## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
2099 ## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
2100 ## Values: ClientIP or None
2101 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
2103 sessionAffinity: "None"
2104 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
2105 ## sessionAffinityConfig:
2107 ## timeoutSeconds: 300
2108 sessionAffinityConfig: {}
2109 ## @param service.annotations Provide any additional annotations both for PostgreSQL and Pgpool-II services
2112 ## @param service.serviceLabels Labels for PostgreSQL service
2115 ## Headless service properties
2118 ## @param service.headless.annotations Annotations for the headless service.
2121## @section Backup parameters
2122## This section implements a trivial logical dump cronjob of the database.
2123## This only comes with the consistency guarantees of the dump program.
2124## This is not a snapshot based roll forward/backward recovery backup.
2125## ref: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
2127 ## @param backup.enabled Enable the logical dump of the database "regularly"
2130 ## @param backup.cronjob.schedule Set the cronjob parameter schedule
2132 ## @param backup.cronjob.timeZone Set the cronjob parameter timeZone
2134 ## @param backup.cronjob.concurrencyPolicy Set the cronjob parameter concurrencyPolicy
2135 concurrencyPolicy: Allow
2136 ## @param backup.cronjob.failedJobsHistoryLimit Set the cronjob parameter failedJobsHistoryLimit
2137 failedJobsHistoryLimit: 1
2138 ## @param backup.cronjob.successfulJobsHistoryLimit Set the cronjob parameter successfulJobsHistoryLimit
2139 successfulJobsHistoryLimit: 3
2140 ## @param backup.cronjob.startingDeadlineSeconds Set the cronjob parameter startingDeadlineSeconds
2141 startingDeadlineSeconds: ""
2142 ## @param backup.cronjob.ttlSecondsAfterFinished Set the cronjob parameter ttlSecondsAfterFinished
2143 ttlSecondsAfterFinished: ""
2144 ## @param backup.cronjob.restartPolicy Set the cronjob parameter restartPolicy
2145 restartPolicy: OnFailure
2146 ## @param backup.cronjob.podSecurityContext.enabled Enable PodSecurityContext for CronJob/Backup
2147 ## @param backup.cronjob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
2148 ## @param backup.cronjob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
2149 ## @param backup.cronjob.podSecurityContext.supplementalGroups Set filesystem extra groups
2150 ## @param backup.cronjob.podSecurityContext.fsGroup Group ID for the CronJob
2153 fsGroupChangePolicy: Always
2155 supplementalGroups: []
2157 ## backup container's Security Context
2158 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
2159 ## @param backup.cronjob.containerSecurityContext.enabled Enable container security context
2160 ## @param backup.cronjob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2161 ## @param backup.cronjob.containerSecurityContext.runAsUser User ID for the backup container
2162 ## @param backup.cronjob.containerSecurityContext.runAsGroup Group ID for the backup container
2163 ## @param backup.cronjob.containerSecurityContext.runAsNonRoot Set backup container's Security Context runAsNonRoot
2164 ## @param backup.cronjob.containerSecurityContext.readOnlyRootFilesystem Is the container itself readonly
2165 ## @param backup.cronjob.containerSecurityContext.allowPrivilegeEscalation Is it possible to escalate backup pod(s) privileges
2166 ## @param backup.cronjob.containerSecurityContext.seccompProfile.type Set backup container's Security Context seccompProfile type
2167 ## @param backup.cronjob.containerSecurityContext.capabilities.drop Set backup container's Security Context capabilities to drop
2168 containerSecurityContext:
2174 allowPrivilegeEscalation: false
2175 readOnlyRootFilesystem: true
2177 type: RuntimeDefault
2181 ## @param backup.cronjob.command Set backup container's command to run
2185 - PGPASSWORD="${PGPASSWORD:-$(< "$PGPASSWORD_FILE")}" pg_dumpall --clean --if-exists --load-via-partition-root --quote-all-identifiers --no-password --file="${PGDUMP_DIR}/pg_dumpall-$(date '+%Y-%m-%d-%H-%M').pgdump"
2186 ## @param backup.cronjob.labels Set the cronjob labels
2188 ## @param backup.cronjob.annotations Set the cronjob annotations
2190 ## @param backup.cronjob.nodeSelector Node labels for PostgreSQL backup CronJob pod assignment
2191 ## ref: https://kubernetes.io/docs/user-guide/node-selection/
2194 ## @param backup.cronjob.tolerations Tolerations for PostgreSQL backup CronJob pod assignment
2195 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2198 ## @param backup.cronjob.podAffinityPreset PostgreSQL backup pod affinity preset. Ignored if `backup.cronjob.affinity` is set. Allowed values: `soft` or `hard`
2199 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
2201 podAffinityPreset: ""
2202 ## PostgreSQL backup node affinity preset
2203 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
2206 ## @param backup.cronjob.nodeAffinityPreset.type PostgreSQL backup node affinity preset type. Ignored if `backup.cronjob.affinity` is set. Allowed values: `soft` or `hard`
2209 ## @param backup.cronjob.nodeAffinityPreset.key PostgreSQL backup node label key to match Ignored if `backup.cronjob.affinity` is set.
2211 ## key: "kubernetes.io/e2e-az-name"
2214 ## @param backup.cronjob.nodeAffinityPreset.values PostgreSQL backup node label values to match. Ignored if `backup.cronjob.affinity` is set.
2221 ## @param backup.cronjob.affinity Affinity for PostgreSQL backup pods assignment
2222 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
2223 ## Note: backup.cronjob.podAffinityPreset and backup.cronjob.nodeAffinityPreset will be ignored when it's set
2226 ## backup cronjob container resource requests and limits
2227 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2228 ## @param backup.cronjob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if backup.cronjob.resources is set (backup.cronjob.resources is recommended for production).
2230 resourcesPreset: "nano"
2231 ## @param backup.cronjob.resources Set container requests and limits for different resources like CPU or memory
2241 ## @param backup.cronjob.extraEnvVars Array containing extra environment variables
2243 ## - name: BEARER_AUTH
2247 ## @param backup.cronjob.extraEnvVarsCM ConfigMap with extra environment variables
2250 ## @param backup.cronjob.extraEnvVarsSecret Secret with extra environment variables
2252 extraEnvVarsSecret: ""
2253 ## @param backup.cronjob.extraVolumes Extra volumes to add to the backup container
2256 ## @param backup.cronjob.extraVolumeMounts Extra volume mounts to add to the backup container. Normally used with `extraVolumes`
2258 extraVolumeMounts: []
2260 ## @param backup.cronjob.storage.existingClaim Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`)
2261 ## If defined, PVC must be created manually before volume will be bound
2264 ## @param backup.cronjob.storage.resourcePolicy Setting it to "keep" to avoid removing PVCs during a helm delete operation. Leaving it empty will delete PVCs after the chart deleted
2267 ## @param backup.cronjob.storage.storageClass PVC Storage Class for the backup data volume
2268 ## If defined, storageClassName: <storageClass>
2269 ## If set to "-", storageClassName: "", which disables dynamic provisioning
2270 ## If undefined (the default) or set to null, no storageClassName spec is
2271 ## set, choosing the default provisioner.
2274 ## @param backup.cronjob.storage.accessModes PV Access Mode
2278 ## @param backup.cronjob.storage.size PVC Storage Request for the backup data volume
2281 ## @param backup.cronjob.storage.annotations PVC annotations
2284 ## @param backup.cronjob.storage.mountPath Path to mount the volume at
2286 mountPath: /backup/pgdump
2287 ## @param backup.cronjob.storage.subPath Subdirectory of the volume to mount at
2288 ## and one PV for multiple services.
2291 ## Fine tuning for volumeClaimTemplates
2293 volumeClaimTemplates:
2294 ## @param backup.cronjob.storage.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
2295 ## A label query over volumes to consider for binding (e.g. when using local volumes)
2296 ## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details