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## Please, note that this will override the parameters, including dependencies, configured to use the global value
14 ## @param global.imageRegistry Global Docker image registry
17 ## @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.
20 ## @param global.imagePullSecrets Global Docker registry secret names as an array
23 ## - myRegistryKeySecretName
26 ## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
27 ## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
29 defaultStorageClass: ""
31 ## Security parameters
34 ## @param global.security.allowInsecureImages Allows skipping image verification
35 allowInsecureImages: false
37 ## @param global.postgresql.fullnameOverride Full chart name (overrides `fullnameOverride`)
38 ## @param global.postgresql.auth.postgresPassword Password for the "postgres" admin user (overrides `auth.postgresPassword`)
39 ## @param global.postgresql.auth.username Name for a custom user to create (overrides `auth.username`)
40 ## @param global.postgresql.auth.password Password for the custom user to create (overrides `auth.password`)
41 ## @param global.postgresql.auth.database Name for a custom database to create (overrides `auth.database`)
42 ## @param global.postgresql.auth.existingSecret Name of existing secret to use for PostgreSQL credentials (overrides `auth.existingSecret`).
43 ## @param global.postgresql.auth.secretKeys.adminPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.adminPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
44 ## @param global.postgresql.auth.secretKeys.userPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.userPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
45 ## @param global.postgresql.auth.secretKeys.replicationPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.replicationPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
46 ## @param global.postgresql.auth.secretKeys.metricsPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.metricsPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
58 replicationPasswordKey: ""
59 metricsPasswordKey: ""
60 ## @param global.postgresql.service.ports.postgresql PostgreSQL service port (overrides `service.ports.postgresql`)
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
78## @param kubeVersion Override Kubernetes version
81## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
84## @param fullnameOverride String to fully override common.names.fullname template
87## @param namespaceOverride String to fully override common.names.namespace
90## @param clusterDomain Kubernetes Cluster Domain
92clusterDomain: cluster.local
93## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
96## @param commonLabels Add labels to all the deployed resources
99## @param commonAnnotations Add annotations to all the deployed resources
102## @param secretAnnotations Add annotations to the secrets
105## Enable diagnostic mode in the statefulset
108 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
111 ## @param diagnosticMode.command Command to override all containers in the statefulset
115 ## @param diagnosticMode.args Args to override all containers in the statefulset
119## @section PostgreSQL common parameters
122## Iamguarded PostgreSQL image version
123## @param image.registry [default: REGISTRY_NAME] PostgreSQL image registry
124## @param image.repository [default: REPOSITORY_NAME/postgresql] PostgreSQL image repository
125## @skip image.tag PostgreSQL image tag (immutable tags are recommended)
126## @param image.digest PostgreSQL image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
127## @param image.pullPolicy PostgreSQL image pull policy
128## @param image.pullSecrets Specify image pull secrets
129## @param image.debug Specify if debug values should be set
133 repository: chainguard-private/postgres-iamguarded
135 digest: sha256:90f2fda9268e1d852b39560aa98dd54e58f944b1f1e03075eb1739eeb0a4469c
136 ## Specify a imagePullPolicy
137 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
139 pullPolicy: IfNotPresent
140 ## Optionally specify an array of imagePullSecrets.
141 ## Secrets must be manually created in the namespace.
142 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
145 ## - myRegistryKeySecretName
148 ## Set to true if you would like to see extra information on logs
151## Authentication parameters
154 ## @param auth.enablePostgresUser Assign a password to the "postgres" admin user. Otherwise, remote access will be blocked for this user
156 enablePostgresUser: true
157 ## @param auth.postgresPassword Password for the "postgres" admin user. Ignored if `auth.existingSecret` is provided
160 ## @param auth.username Name for a custom user to create
163 ## @param auth.password Password for the custom user to create. Ignored if `auth.existingSecret` is provided
166 ## @param auth.database Name for a custom database to create
169 ## @param auth.replicationUsername Name of the replication user
171 replicationUsername: repl_user
172 ## @param auth.replicationPassword Password for the replication user. Ignored if `auth.existingSecret` is provided
174 replicationPassword: ""
175 ## @param auth.metricsUsername Name of the metrics user used by postgresql exporter
178 ## @param auth.metricsPassword Password for the metrics user used by postgresql exporter. Ignored if `auth.existingSecret` is provided
181 ## @param auth.existingSecret Name of existing secret to use for PostgreSQL credentials. `auth.postgresPassword`, `auth.password`, and `auth.replicationPassword` will be ignored and picked up from this secret. The secret might also contains the key `ldap-password` if LDAP is enabled. `ldap.bind_password` will be ignored and picked from this secret in this case.
184 ## @param auth.secretKeys.adminPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
185 ## @param auth.secretKeys.userPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
186 ## @param auth.secretKeys.replicationPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
187 ## @param auth.secretKeys.metricsPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
190 adminPasswordKey: postgres-password
191 userPasswordKey: password
192 replicationPasswordKey: replication-password
193 metricsPasswordKey: metrics-password
194 ## @param auth.usePasswordFiles Mount credentials as a files instead of using an environment variable
196 usePasswordFiles: true
197## @param architecture PostgreSQL architecture (`standalone` or `replication`)
199architecture: standalone
200## Replication configuration
201## Ignored if `architecture` is `standalone`
204 ## @param replication.synchronousCommit Set synchronous commit mode. Allowed values: `on`, `remote_apply`, `remote_write`, `local` and `off`
205 ## @param replication.numSynchronousReplicas Number of replicas that will have synchronous replication. Note: Cannot be greater than `readReplicas.replicaCount`.
206 ## ref: https://www.postgresql.org/docs/current/runtime-config-wal.html#GUC-SYNCHRONOUS-COMMIT
208 synchronousCommit: "off"
209 numSynchronousReplicas: 0
210 ## @param replication.applicationName Cluster application name. Useful for advanced replication settings
212 applicationName: my_application
213## @param containerPorts.postgresql PostgreSQL container port
218## @param audit.logHostname Log client hostnames
219## @param audit.logConnections Add client log-in operations to the log file
220## @param audit.logDisconnections Add client log-outs operations to the log file
221## @param audit.pgAuditLog Add operations to log using the pgAudit extension
222## @param audit.pgAuditLogCatalog Log catalog using pgAudit
223## @param audit.clientMinMessages Message log level to share with the user
224## @param audit.logLinePrefix Template for log line prefix (default if not set)
225## @param audit.logTimezone Timezone for the log timestamps
229 logConnections: false
230 logDisconnections: false
232 pgAuditLogCatalog: "off"
233 clientMinMessages: error
237## @param ldap.enabled Enable LDAP support
238## @param ldap.server IP address or name of the LDAP server.
239## @param ldap.port Port number on the LDAP server to connect to
240## @param ldap.prefix String to prepend to the user name when forming the DN to bind
241## @param ldap.suffix String to append to the user name when forming the DN to bind
242## DEPRECATED ldap.baseDN It will removed in a future, please use 'ldap.basedn' instead
243## DEPRECATED ldap.bindDN It will removed in a future, please use 'ldap.binddn' instead
244## DEPRECATED ldap.bind_password It will removed in a future, please use 'ldap.bindpw' instead
245## @param ldap.basedn Root DN to begin the search for the user in
246## @param ldap.binddn DN of user to bind to LDAP
247## @param ldap.bindpw Password for the user to bind to LDAP
248## DEPRECATED ldap.search_attr It will removed in a future, please use 'ldap.searchAttribute' instead
249## DEPRECATED ldap.search_filter It will removed in a future, please use 'ldap.searchFilter' instead
250## @param ldap.searchAttribute Attribute to match against the user name in the search
251## @param ldap.searchFilter The search filter to use when doing search+bind authentication
252## @param ldap.scheme Set to `ldaps` to use LDAPS
253## DEPRECATED ldap.tls as string is deprecated, please use 'ldap.tls.enabled' instead
254## @param ldap.tls.enabled Se to true to enable TLS encryption
270 ## @param ldap.uri LDAP URL beginning in the form `ldap[s]://host[:port]/basedn`. If provided, all the other LDAP parameters will be ignored.
271 ## Ref: https://www.postgresql.org/docs/current/auth-ldap.html
274## @param postgresqlDataDir PostgreSQL data dir folder
276postgresqlDataDir: /iamguarded/postgresql/data
277## @param postgresqlSharedPreloadLibraries Shared preload libraries (comma-separated list)
279postgresqlSharedPreloadLibraries: "pgaudit"
280## Start PostgreSQL pod(s) without limitations on shm memory.
281## By default docker and containerd (and possibly other container runtimes) limit `/dev/shm` to `64M`
282## ref: https://github.com/docker-library/postgres/issues/416
283## ref: https://github.com/containerd/containerd/issues/3654
286 ## @param shmVolume.enabled Enable emptyDir volume for /dev/shm for PostgreSQL pod(s)
289 ## @param shmVolume.sizeLimit Set this to enable a size limit on the shm tmpfs
290 ## Note: the size of the tmpfs counts against container's memory limit
298 ## @param tls.enabled Enable TLS traffic support
301 ## @param tls.autoGenerated Generate automatically self-signed TLS certificates
304 ## @param tls.preferServerCiphers Whether to use the server's TLS cipher preferences rather than the client's
306 preferServerCiphers: true
307 ## @param tls.certificatesSecret Name of an existing secret that contains the certificates
309 certificatesSecret: ""
310 ## @param tls.certFilename Certificate filename
313 ## @param tls.certKeyFilename Certificate key filename
316 ## @param tls.certCAFilename CA Certificate filename
317 ## If provided, PostgreSQL will authenticate TLS/SSL clients by requesting them a certificate
318 ## ref: https://www.postgresql.org/docs/9.6/auth-methods.html
321 ## @param tls.crlFilename File containing a Certificate Revocation List
324## @section PostgreSQL Primary parameters
327 ## @param primary.name Name of the primary database (eg primary, master, leader, ...)
330 ## @param primary.configuration PostgreSQL Primary main configuration to be injected as ConfigMap
331 ## ref: https://www.postgresql.org/docs/current/static/runtime-config.html
334 ## @param primary.pgHbaConfiguration PostgreSQL Primary client authentication configuration
335 ## ref: https://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html
337 ## pgHbaConfiguration: |-
338 ## local all all trust
339 ## host all all localhost trust
340 ## host mydatabase mysuser 192.168.0.0/24 md5
342 pgHbaConfiguration: ""
343 ## @param primary.existingConfigmap Name of an existing ConfigMap with PostgreSQL Primary configuration
344 ## NOTE: `primary.configuration` and `primary.pgHbaConfiguration` will be ignored
346 existingConfigmap: ""
347 ## @param primary.extendedConfiguration Extended PostgreSQL Primary configuration (appended to main or default configuration)
349 extendedConfiguration: ""
350 ## @param primary.existingExtendedConfigmap Name of an existing ConfigMap with PostgreSQL Primary extended configuration
351 ## NOTE: `primary.extendedConfiguration` will be ignored
353 existingExtendedConfigmap: ""
354 ## Initdb configuration
357 ## @param primary.initdb.args PostgreSQL initdb extra arguments
360 ## @param primary.initdb.postgresqlWalDir Specify a custom location for the PostgreSQL transaction log
363 ## @param primary.initdb.scripts Dictionary of initdb scripts
364 ## Specify dictionary of scripts to be run at first boot
367 ## my_init_script.sh: |
369 ## echo "Do something."
372 ## @param primary.initdb.scriptsConfigMap ConfigMap with scripts to be run at first boot
373 ## NOTE: This will override `primary.initdb.scripts`
376 ## @param primary.initdb.scriptsSecret Secret with scripts to be run at first boot (in case it contains sensitive information)
377 ## NOTE: This can work along `primary.initdb.scripts` or `primary.initdb.scriptsConfigMap`
380 ## @param primary.initdb.user Specify the PostgreSQL username to execute the initdb scripts
383 ## @param primary.initdb.password Specify the PostgreSQL password to execute the initdb scripts
386 ## Pre-init configuration
388 ## @param primary.preInitDb.scripts Dictionary of pre-init scripts
389 ## Specify dictionary of shell scripts to be run before db boot
392 ## my_pre_init_script.sh: |
394 ## echo "Do something."
396 ## @param primary.preInitDb.scriptsConfigMap ConfigMap with pre-init scripts to be run
397 ## NOTE: This will override `primary.preInitDb.scripts`
399 ## @param primary.preInitDb.scriptsSecret Secret with pre-init scripts to be run
400 ## NOTE: This can work along `primary.preInitDb.scripts` or `primary.preInitDb.scriptsConfigMap`
402 ## Configure current cluster's primary server to be the standby server in other cluster.
403 ## This will allow cross cluster replication and provide cross cluster high availability.
404 ## You will need to configure pgHbaConfiguration if you want to enable this feature with local cluster replication enabled.
405 ## @param primary.standby.enabled Whether to enable current cluster's primary as standby server of another cluster or not
406 ## @param primary.standby.primaryHost The Host of replication primary in the other cluster
407 ## @param primary.standby.primaryPort The Port of replication primary in the other cluster
413 ## @param primary.extraEnvVars Array with extra environment variables to add to PostgreSQL Primary nodes
420 ## @param primary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for PostgreSQL Primary nodes
423 ## @param primary.extraEnvVarsSecret Name of existing Secret containing extra env vars for PostgreSQL Primary nodes
425 extraEnvVarsSecret: ""
426 ## @param primary.command Override default container command (useful when using custom images)
429 ## @param primary.args Override default container args (useful when using custom images)
432 ## Configure extra options for PostgreSQL Primary containers' liveness, readiness and startup probes
433 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
434 ## @param primary.livenessProbe.enabled Enable livenessProbe on PostgreSQL Primary containers
435 ## @param primary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
436 ## @param primary.livenessProbe.periodSeconds Period seconds for livenessProbe
437 ## @param primary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
438 ## @param primary.livenessProbe.failureThreshold Failure threshold for livenessProbe
439 ## @param primary.livenessProbe.successThreshold Success threshold for livenessProbe
443 initialDelaySeconds: 30
448 ## @param primary.readinessProbe.enabled Enable readinessProbe on PostgreSQL Primary containers
449 ## @param primary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
450 ## @param primary.readinessProbe.periodSeconds Period seconds for readinessProbe
451 ## @param primary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
452 ## @param primary.readinessProbe.failureThreshold Failure threshold for readinessProbe
453 ## @param primary.readinessProbe.successThreshold Success threshold for readinessProbe
457 initialDelaySeconds: 5
462 ## @param primary.startupProbe.enabled Enable startupProbe on PostgreSQL Primary containers
463 ## @param primary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
464 ## @param primary.startupProbe.periodSeconds Period seconds for startupProbe
465 ## @param primary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
466 ## @param primary.startupProbe.failureThreshold Failure threshold for startupProbe
467 ## @param primary.startupProbe.successThreshold Success threshold for startupProbe
471 initialDelaySeconds: 30
476 ## @param primary.customLivenessProbe Custom livenessProbe that overrides the default one
478 customLivenessProbe: {}
479 ## @param primary.customReadinessProbe Custom readinessProbe that overrides the default one
481 customReadinessProbe: {}
482 ## @param primary.customStartupProbe Custom startupProbe that overrides the default one
484 customStartupProbe: {}
485 ## @param primary.lifecycleHooks for the PostgreSQL Primary container to automate configuration before or after startup
488 ## PostgreSQL Primary resource requests and limits
489 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
490 ## @param primary.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if primary.resources is set (primary.resources is recommended for production).
492 resourcesPreset: "nano"
493 ## @param primary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
504 ## Pod Security Context
505 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
506 ## @param primary.podSecurityContext.enabled Enable security context
507 ## @param primary.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
508 ## @param primary.podSecurityContext.sysctls Set kernel settings using the sysctl interface
509 ## @param primary.podSecurityContext.supplementalGroups Set filesystem extra groups
510 ## @param primary.podSecurityContext.fsGroup Group ID for the pod
514 fsGroupChangePolicy: Always
516 supplementalGroups: []
518 ## Container Security Context
519 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
520 ## @param primary.containerSecurityContext.enabled Enabled containers' Security Context
521 ## @param primary.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
522 ## @param primary.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
523 ## @param primary.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
524 ## @param primary.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
525 ## @param primary.containerSecurityContext.privileged Set container's Security Context privileged
526 ## @param primary.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
527 ## @param primary.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
528 ## @param primary.containerSecurityContext.capabilities.drop List of capabilities to be dropped
529 ## @param primary.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
531 containerSecurityContext:
538 readOnlyRootFilesystem: true
539 allowPrivilegeEscalation: false
543 type: "RuntimeDefault"
544 ## @param primary.automountServiceAccountToken Mount Service Account token in pod
546 automountServiceAccountToken: false
547 ## @param primary.hostAliases PostgreSQL primary pods host aliases
548 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
551 ## @param primary.hostNetwork Specify if host network should be enabled for PostgreSQL pod (postgresql primary)
554 ## @param primary.hostIPC Specify if host IPC should be enabled for PostgreSQL pod (postgresql primary)
557 ## @param primary.labels Map of labels to add to the statefulset (postgresql primary)
560 ## @param primary.annotations Annotations for PostgreSQL primary pods
563 ## @param primary.podLabels Map of labels to add to the pods (postgresql primary)
566 ## @param primary.podAnnotations Map of annotations to add to the pods (postgresql primary)
569 ## @param primary.podAffinityPreset PostgreSQL primary pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
570 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
572 podAffinityPreset: ""
573 ## @param primary.podAntiAffinityPreset PostgreSQL primary pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
574 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
576 podAntiAffinityPreset: soft
577 ## PostgreSQL Primary node affinity preset
578 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
581 ## @param primary.nodeAffinityPreset.type PostgreSQL primary node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
584 ## @param primary.nodeAffinityPreset.key PostgreSQL primary node label key to match Ignored if `primary.affinity` is set.
586 ## key: "kubernetes.io/e2e-az-name"
589 ## @param primary.nodeAffinityPreset.values PostgreSQL primary node label values to match. Ignored if `primary.affinity` is set.
596 ## @param primary.affinity Affinity for PostgreSQL primary pods assignment
597 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
598 ## Note: primary.podAffinityPreset, primary.podAntiAffinityPreset, and primary.nodeAffinityPreset will be ignored when it's set
601 ## @param primary.nodeSelector Node labels for PostgreSQL primary pods assignment
602 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
605 ## @param primary.tolerations Tolerations for PostgreSQL primary pods assignment
606 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
609 ## @param primary.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
610 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
612 topologySpreadConstraints: []
613 ## @param primary.priorityClassName Priority Class to use for each pod (postgresql primary)
615 priorityClassName: ""
616 ## @param primary.schedulerName Use an alternate scheduler, e.g. "stork".
617 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
620 ## @param primary.terminationGracePeriodSeconds Seconds PostgreSQL primary pod needs to terminate gracefully
621 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
623 terminationGracePeriodSeconds: ""
624 ## @param primary.updateStrategy.type PostgreSQL Primary statefulset strategy type
625 ## @param primary.updateStrategy.rollingUpdate PostgreSQL Primary statefulset rolling update configuration parameters
626 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
631 ## @param primary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the PostgreSQL Primary container(s)
633 extraVolumeMounts: []
634 ## @param primary.extraVolumes Optionally specify extra list of additional volumes for the PostgreSQL Primary pod(s)
637 ## @param primary.sidecars Add additional sidecar containers to the PostgreSQL Primary pod(s)
640 ## - name: your-image-name
642 ## imagePullPolicy: Always
645 ## containerPort: 1234
648 ## @param primary.initContainers Add additional init containers to the PostgreSQL Primary pod(s)
652 ## - name: do-something
654 ## command: ['do', 'something']
657 ## Pod Disruption Budget configuration
658 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
659 ## @param primary.pdb.create Enable/disable a Pod Disruption Budget creation
660 ## @param primary.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
661 ## @param primary.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `primary.pdb.minAvailable` and `primary.pdb.maxUnavailable` are empty.
667 ## @param primary.extraPodSpec Optionally specify extra PodSpec for the PostgreSQL Primary pod(s)
671 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
674 ## @param primary.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
677 ## @param primary.networkPolicy.allowExternal Don't require server label for connections
678 ## The Policy model to apply. When set to false, only pods with the correct
679 ## server label will have network access to the ports server is listening
680 ## on. When true, server will accept connections from any source
681 ## (with the correct destination port).
684 ## @param primary.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
686 allowExternalEgress: true
687 ## @param primary.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
697 ## - matchExpressions:
703 ## @param primary.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
713 ## - matchExpressions:
720 ## @param primary.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
721 ## @param primary.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
723 ingressNSMatchLabels: {}
724 ingressNSPodMatchLabels: {}
725 ## PostgreSQL Primary service configuration
728 ## @param primary.service.enabled Enable/disable the PostgreSQL primary service
731 ## @param primary.service.type Kubernetes Service type
734 ## @param primary.service.ports.postgresql PostgreSQL service port
738 ## Node ports to expose
739 ## NOTE: choose port between <30000-32767>
740 ## @param primary.service.nodePorts.postgresql Node port for PostgreSQL
741 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
745 ## @param primary.service.clusterIP Static clusterIP or None for headless services
750 ## @param primary.service.labels Map of labels to add to the primary service
753 ## @param primary.service.annotations Annotations for PostgreSQL primary service
756 ## @param primary.service.loadBalancerClass Load balancer class if service type is `LoadBalancer`
757 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
759 loadBalancerClass: ""
760 ## @param primary.service.loadBalancerIP Load balancer IP if service type is `LoadBalancer`
761 ## Set the LoadBalancer service type to internal only
762 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
765 ## @param primary.service.externalTrafficPolicy Enable client source IP preservation
766 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
768 externalTrafficPolicy: Cluster
769 ## @param primary.service.loadBalancerSourceRanges Addresses that are allowed when service is LoadBalancer
770 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
772 ## loadBalancerSourceRanges:
775 loadBalancerSourceRanges: []
776 ## @param primary.service.extraPorts Extra ports to expose in the PostgreSQL primary service
779 ## @param primary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
780 ## If "ClientIP", consecutive client requests will be directed to the same Pod
781 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
783 sessionAffinity: None
784 ## @param primary.service.sessionAffinityConfig Additional settings for the sessionAffinity
785 ## sessionAffinityConfig:
787 ## timeoutSeconds: 300
789 sessionAffinityConfig: {}
790 ## Headless service properties
793 ## @param primary.service.headless.annotations Additional custom annotations for headless PostgreSQL primary service
796 ## PostgreSQL Primary persistence configuration
799 ## @param primary.persistence.enabled Enable PostgreSQL Primary data persistence using PVC
802 ## @param primary.persistence.volumeName Name to assign the volume
805 ## @param primary.persistence.existingClaim Name of an existing PVC to use
808 ## @param primary.persistence.mountPath The path the volume will be mounted at
809 ## Note: useful when using custom PostgreSQL images
811 mountPath: /iamguarded/postgresql
812 ## @param primary.persistence.subPath The subdirectory of the volume to mount to
813 ## Useful in dev environments and one PV for multiple services
816 ## @param primary.persistence.storageClass PVC Storage Class for PostgreSQL Primary data volume
817 ## If defined, storageClassName: <storageClass>
818 ## If set to "-", storageClassName: "", which disables dynamic provisioning
819 ## If undefined (the default) or set to null, no storageClassName spec is
820 ## set, choosing the default provisioner. (gp2 on AWS, standard on
821 ## GKE, AWS & OpenStack)
824 ## @param primary.persistence.accessModes PVC Access Mode for PostgreSQL volume
828 ## @param primary.persistence.size PVC Storage Request for PostgreSQL volume
831 ## @param primary.persistence.annotations Annotations for the PVC
834 ## @param primary.persistence.labels Labels for the PVC
837 ## @param primary.persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template)
843 ## @param primary.persistence.dataSource Custom PVC data source
846 ## PostgreSQL Primary Persistent Volume Claim Retention Policy
847 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
849 persistentVolumeClaimRetentionPolicy:
850 ## @param primary.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for Primary Statefulset
853 ## @param primary.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
856 ## @param primary.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
859## @section PostgreSQL read only replica parameters (only used when `architecture` is set to `replication`)
862 ## @param readReplicas.name Name of the read replicas database (eg secondary, slave, ...)
865 ## @param readReplicas.replicaCount Number of PostgreSQL read only replicas
868 ## @param readReplicas.extendedConfiguration Extended PostgreSQL read only replicas configuration (appended to main or default configuration)
870 extendedConfiguration: ""
871 ## @param readReplicas.extraEnvVars Array with extra environment variables to add to PostgreSQL read only nodes
878 ## @param readReplicas.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for PostgreSQL read only nodes
881 ## @param readReplicas.extraEnvVarsSecret Name of existing Secret containing extra env vars for PostgreSQL read only nodes
883 extraEnvVarsSecret: ""
884 ## @param readReplicas.command Override default container command (useful when using custom images)
887 ## @param readReplicas.args Override default container args (useful when using custom images)
890 ## Configure extra options for PostgreSQL read only containers' liveness, readiness and startup probes
891 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
892 ## @param readReplicas.livenessProbe.enabled Enable livenessProbe on PostgreSQL read only containers
893 ## @param readReplicas.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
894 ## @param readReplicas.livenessProbe.periodSeconds Period seconds for livenessProbe
895 ## @param readReplicas.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
896 ## @param readReplicas.livenessProbe.failureThreshold Failure threshold for livenessProbe
897 ## @param readReplicas.livenessProbe.successThreshold Success threshold for livenessProbe
901 initialDelaySeconds: 30
906 ## @param readReplicas.readinessProbe.enabled Enable readinessProbe on PostgreSQL read only containers
907 ## @param readReplicas.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
908 ## @param readReplicas.readinessProbe.periodSeconds Period seconds for readinessProbe
909 ## @param readReplicas.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
910 ## @param readReplicas.readinessProbe.failureThreshold Failure threshold for readinessProbe
911 ## @param readReplicas.readinessProbe.successThreshold Success threshold for readinessProbe
915 initialDelaySeconds: 5
920 ## @param readReplicas.startupProbe.enabled Enable startupProbe on PostgreSQL read only containers
921 ## @param readReplicas.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
922 ## @param readReplicas.startupProbe.periodSeconds Period seconds for startupProbe
923 ## @param readReplicas.startupProbe.timeoutSeconds Timeout seconds for startupProbe
924 ## @param readReplicas.startupProbe.failureThreshold Failure threshold for startupProbe
925 ## @param readReplicas.startupProbe.successThreshold Success threshold for startupProbe
929 initialDelaySeconds: 30
934 ## @param readReplicas.customLivenessProbe Custom livenessProbe that overrides the default one
936 customLivenessProbe: {}
937 ## @param readReplicas.customReadinessProbe Custom readinessProbe that overrides the default one
939 customReadinessProbe: {}
940 ## @param readReplicas.customStartupProbe Custom startupProbe that overrides the default one
942 customStartupProbe: {}
943 ## @param readReplicas.lifecycleHooks for the PostgreSQL read only container to automate configuration before or after startup
946 ## PostgreSQL read only resource requests and limits
947 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
948 ## @param readReplicas.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if readReplicas.resources is set (readReplicas.resources is recommended for production).
950 resourcesPreset: "nano"
951 ## @param readReplicas.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
962 ## Pod Security Context
963 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
964 ## @param readReplicas.podSecurityContext.enabled Enable security context
965 ## @param readReplicas.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
966 ## @param readReplicas.podSecurityContext.sysctls Set kernel settings using the sysctl interface
967 ## @param readReplicas.podSecurityContext.supplementalGroups Set filesystem extra groups
968 ## @param readReplicas.podSecurityContext.fsGroup Group ID for the pod
972 fsGroupChangePolicy: Always
974 supplementalGroups: []
976 ## Container Security Context
977 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
978 ## @param readReplicas.containerSecurityContext.enabled Enabled containers' Security Context
979 ## @param readReplicas.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
980 ## @param readReplicas.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
981 ## @param readReplicas.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
982 ## @param readReplicas.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
983 ## @param readReplicas.containerSecurityContext.privileged Set container's Security Context privileged
984 ## @param readReplicas.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
985 ## @param readReplicas.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
986 ## @param readReplicas.containerSecurityContext.capabilities.drop List of capabilities to be dropped
987 ## @param readReplicas.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
989 containerSecurityContext:
996 readOnlyRootFilesystem: true
997 allowPrivilegeEscalation: false
1001 type: "RuntimeDefault"
1002 ## @param readReplicas.automountServiceAccountToken Mount Service Account token in pod
1004 automountServiceAccountToken: false
1005 ## @param readReplicas.hostAliases PostgreSQL read only pods host aliases
1006 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1009 ## @param readReplicas.hostNetwork Specify if host network should be enabled for PostgreSQL pod (PostgreSQL read only)
1012 ## @param readReplicas.hostIPC Specify if host IPC should be enabled for PostgreSQL pod (postgresql primary)
1015 ## @param readReplicas.labels Map of labels to add to the statefulset (PostgreSQL read only)
1018 ## @param readReplicas.annotations Annotations for PostgreSQL read only pods
1021 ## @param readReplicas.podLabels Map of labels to add to the pods (PostgreSQL read only)
1024 ## @param readReplicas.podAnnotations Map of annotations to add to the pods (PostgreSQL read only)
1027 ## @param readReplicas.podAffinityPreset PostgreSQL read only pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
1028 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1030 podAffinityPreset: ""
1031 ## @param readReplicas.podAntiAffinityPreset PostgreSQL read only pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
1032 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1034 podAntiAffinityPreset: soft
1035 ## PostgreSQL read only node affinity preset
1036 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1039 ## @param readReplicas.nodeAffinityPreset.type PostgreSQL read only node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
1042 ## @param readReplicas.nodeAffinityPreset.key PostgreSQL read only node label key to match Ignored if `primary.affinity` is set.
1044 ## key: "kubernetes.io/e2e-az-name"
1047 ## @param readReplicas.nodeAffinityPreset.values PostgreSQL read only node label values to match. Ignored if `primary.affinity` is set.
1054 ## @param readReplicas.affinity Affinity for PostgreSQL read only pods assignment
1055 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1056 ## Note: primary.podAffinityPreset, primary.podAntiAffinityPreset, and primary.nodeAffinityPreset will be ignored when it's set
1059 ## @param readReplicas.nodeSelector Node labels for PostgreSQL read only pods assignment
1060 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1063 ## @param readReplicas.tolerations Tolerations for PostgreSQL read only pods assignment
1064 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1067 ## @param readReplicas.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1068 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1070 topologySpreadConstraints: []
1071 ## @param readReplicas.priorityClassName Priority Class to use for each pod (PostgreSQL read only)
1073 priorityClassName: ""
1074 ## @param readReplicas.schedulerName Use an alternate scheduler, e.g. "stork".
1075 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1078 ## @param readReplicas.terminationGracePeriodSeconds Seconds PostgreSQL read only pod needs to terminate gracefully
1079 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1081 terminationGracePeriodSeconds: ""
1082 ## @param readReplicas.updateStrategy.type PostgreSQL read only statefulset strategy type
1083 ## @param readReplicas.updateStrategy.rollingUpdate PostgreSQL read only statefulset rolling update configuration parameters
1084 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1089 ## @param readReplicas.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the PostgreSQL read only container(s)
1091 extraVolumeMounts: []
1092 ## @param readReplicas.extraVolumes Optionally specify extra list of additional volumes for the PostgreSQL read only pod(s)
1095 ## @param readReplicas.sidecars Add additional sidecar containers to the PostgreSQL read only pod(s)
1098 ## - name: your-image-name
1099 ## image: your-image
1100 ## imagePullPolicy: Always
1103 ## containerPort: 1234
1106 ## @param readReplicas.initContainers Add additional init containers to the PostgreSQL read only pod(s)
1110 ## - name: do-something
1112 ## command: ['do', 'something']
1115 ## Pod Disruption Budget configuration
1116 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
1117 ## @param readReplicas.pdb.create Enable/disable a Pod Disruption Budget creation
1118 ## @param readReplicas.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
1119 ## @param readReplicas.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `readReplicas.pdb.minAvailable` and `readReplicas.pdb.maxUnavailable` are empty.
1125 ## @param readReplicas.extraPodSpec Optionally specify extra PodSpec for the PostgreSQL read only pod(s)
1129 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1132 ## @param readReplicas.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1135 ## @param readReplicas.networkPolicy.allowExternal Don't require server label for connections
1136 ## The Policy model to apply. When set to false, only pods with the correct
1137 ## server label will have network access to the ports server is listening
1138 ## on. When true, server will accept connections from any source
1139 ## (with the correct destination port).
1142 ## @param readReplicas.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1144 allowExternalEgress: true
1145 ## @param readReplicas.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1155 ## - matchExpressions:
1161 ## @param readReplicas.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1171 ## - matchExpressions:
1178 ## @param readReplicas.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
1179 ## @param readReplicas.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
1181 ingressNSMatchLabels: {}
1182 ingressNSPodMatchLabels: {}
1183 ## PostgreSQL read only service configuration
1186 ## @param readReplicas.service.type Kubernetes Service type
1189 ## @param readReplicas.service.ports.postgresql PostgreSQL service port
1193 ## Node ports to expose
1194 ## NOTE: choose port between <30000-32767>
1195 ## @param readReplicas.service.nodePorts.postgresql Node port for PostgreSQL
1196 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1200 ## @param readReplicas.service.clusterIP Static clusterIP or None for headless services
1205 ## @param readReplicas.service.labels Map of labels to add to the read service
1208 ## @param readReplicas.service.annotations Annotations for PostgreSQL read only service
1211 ## @param readReplicas.service.loadBalancerClass Load balancer class if service type is `LoadBalancer`
1212 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
1214 loadBalancerClass: ""
1215 ## @param readReplicas.service.loadBalancerIP Load balancer IP if service type is `LoadBalancer`
1216 ## Set the LoadBalancer service type to internal only
1217 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1220 ## @param readReplicas.service.externalTrafficPolicy Enable client source IP preservation
1221 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1223 externalTrafficPolicy: Cluster
1224 ## @param readReplicas.service.loadBalancerSourceRanges Addresses that are allowed when service is LoadBalancer
1225 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1227 ## loadBalancerSourceRanges:
1230 loadBalancerSourceRanges: []
1231 ## @param readReplicas.service.extraPorts Extra ports to expose in the PostgreSQL read only service
1234 ## @param readReplicas.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1235 ## If "ClientIP", consecutive client requests will be directed to the same Pod
1236 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1238 sessionAffinity: None
1239 ## @param readReplicas.service.sessionAffinityConfig Additional settings for the sessionAffinity
1240 ## sessionAffinityConfig:
1242 ## timeoutSeconds: 300
1244 sessionAffinityConfig: {}
1245 ## Headless service properties
1248 ## @param readReplicas.service.headless.annotations Additional custom annotations for headless PostgreSQL read only service
1251 ## PostgreSQL read only persistence configuration
1254 ## @param readReplicas.persistence.enabled Enable PostgreSQL read only data persistence using PVC
1257 ## @param readReplicas.persistence.existingClaim Name of an existing PVC to use
1260 ## @param readReplicas.persistence.mountPath The path the volume will be mounted at
1261 ## Note: useful when using custom PostgreSQL images
1263 mountPath: /iamguarded/postgresql
1264 ## @param readReplicas.persistence.subPath The subdirectory of the volume to mount to
1265 ## Useful in dev environments and one PV for multiple services
1268 ## @param readReplicas.persistence.storageClass PVC Storage Class for PostgreSQL read only data volume
1269 ## If defined, storageClassName: <storageClass>
1270 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1271 ## If undefined (the default) or set to null, no storageClassName spec is
1272 ## set, choosing the default provisioner. (gp2 on AWS, standard on
1273 ## GKE, AWS & OpenStack)
1276 ## @param readReplicas.persistence.accessModes PVC Access Mode for PostgreSQL volume
1280 ## @param readReplicas.persistence.size PVC Storage Request for PostgreSQL volume
1283 ## @param readReplicas.persistence.annotations Annotations for the PVC
1286 ## @param readReplicas.persistence.labels Labels for the PVC
1289 ## @param readReplicas.persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template)
1295 ## @param readReplicas.persistence.dataSource Custom PVC data source
1298 ## PostgreSQL Read only Persistent Volume Claim Retention Policy
1299 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1301 persistentVolumeClaimRetentionPolicy:
1302 ## @param readReplicas.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for read only Statefulset
1305 ## @param readReplicas.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1308 ## @param readReplicas.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1311## @section Backup parameters
1312## This section implements a trivial logical dump cronjob of the database.
1313## This only comes with the consistency guarantees of the dump program.
1314## This is not a snapshot based roll forward/backward recovery backup.
1315## ref: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
1317 ## @param backup.enabled Enable the logical dump of the database "regularly"
1320 ## @param backup.cronjob.schedule Set the cronjob parameter schedule
1322 ## @param backup.cronjob.timeZone Set the cronjob parameter timeZone
1324 ## @param backup.cronjob.concurrencyPolicy Set the cronjob parameter concurrencyPolicy
1325 concurrencyPolicy: Allow
1326 ## @param backup.cronjob.failedJobsHistoryLimit Set the cronjob parameter failedJobsHistoryLimit
1327 failedJobsHistoryLimit: 1
1328 ## @param backup.cronjob.successfulJobsHistoryLimit Set the cronjob parameter successfulJobsHistoryLimit
1329 successfulJobsHistoryLimit: 3
1330 ## @param backup.cronjob.startingDeadlineSeconds Set the cronjob parameter startingDeadlineSeconds
1331 startingDeadlineSeconds: ""
1332 ## @param backup.cronjob.ttlSecondsAfterFinished Set the cronjob parameter ttlSecondsAfterFinished
1333 ttlSecondsAfterFinished: ""
1334 ## @param backup.cronjob.restartPolicy Set the cronjob parameter restartPolicy
1335 restartPolicy: OnFailure
1336 ## @param backup.cronjob.podSecurityContext.enabled Enable PodSecurityContext for CronJob/Backup
1337 ## @param backup.cronjob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1338 ## @param backup.cronjob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1339 ## @param backup.cronjob.podSecurityContext.supplementalGroups Set filesystem extra groups
1340 ## @param backup.cronjob.podSecurityContext.fsGroup Group ID for the CronJob
1343 fsGroupChangePolicy: Always
1345 supplementalGroups: []
1347 ## backup container's Security Context
1348 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1349 ## @param backup.cronjob.containerSecurityContext.enabled Enabled containers' Security Context
1350 ## @param backup.cronjob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1351 ## @param backup.cronjob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1352 ## @param backup.cronjob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1353 ## @param backup.cronjob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1354 ## @param backup.cronjob.containerSecurityContext.privileged Set container's Security Context privileged
1355 ## @param backup.cronjob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1356 ## @param backup.cronjob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1357 ## @param backup.cronjob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1358 ## @param backup.cronjob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1359 containerSecurityContext:
1366 readOnlyRootFilesystem: true
1367 allowPrivilegeEscalation: false
1371 type: "RuntimeDefault"
1372 ## @param backup.cronjob.command Set backup container's command to run
1376 - 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"
1377 ## @param backup.cronjob.labels Set the cronjob labels
1379 ## @param backup.cronjob.annotations Set the cronjob annotations
1381 ## @param backup.cronjob.nodeSelector Node labels for PostgreSQL backup CronJob pod assignment
1382 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes/
1385 ## @param backup.cronjob.tolerations Tolerations for PostgreSQL backup CronJob pods assignment
1386 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1389 ## backup cronjob container resource requests and limits
1390 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1391 ## @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).
1393 resourcesPreset: "nano"
1394 ## @param backup.cronjob.resources Set container requests and limits for different resources like CPU or memory
1405 ## @param backup.cronjob.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1409 ## @param backup.cronjob.storage.enabled Enable using a `PersistentVolumeClaim` as backup data volume
1412 ## @param backup.cronjob.storage.existingClaim Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`)
1413 ## If defined, PVC must be created manually before volume will be bound
1416 ## @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
1419 ## @param backup.cronjob.storage.storageClass PVC Storage Class for the backup data volume
1420 ## If defined, storageClassName: <storageClass>
1421 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1422 ## If undefined (the default) or set to null, no storageClassName spec is
1423 ## set, choosing the default provisioner.
1426 ## @param backup.cronjob.storage.accessModes PV Access Mode
1430 ## @param backup.cronjob.storage.size PVC Storage Request for the backup data volume
1433 ## @param backup.cronjob.storage.annotations PVC annotations
1436 ## @param backup.cronjob.storage.mountPath Path to mount the volume at
1438 mountPath: /backup/pgdump
1439 ## @param backup.cronjob.storage.subPath Subdirectory of the volume to mount at
1440 ## and one PV for multiple services.
1443 ## Fine tuning for volumeClaimTemplates
1445 volumeClaimTemplates:
1446 ## @param backup.cronjob.storage.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
1447 ## A label query over volumes to consider for binding (e.g. when using local volumes)
1448 ## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details
1451 ## @param backup.cronjob.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the backup container
1453 extraVolumeMounts: []
1454 ## @param backup.cronjob.extraVolumes Optionally specify extra list of additional volumes for the backup container
1457## @section Password update job
1460 ## @param passwordUpdateJob.enabled Enable password update job
1463 ## @param passwordUpdateJob.backoffLimit set backoff limit of the job
1466 ## @param passwordUpdateJob.command Override default container command on mysql Primary container(s) (useful when using custom images)
1469 ## @param passwordUpdateJob.args Override default container args on mysql Primary container(s) (useful when using custom images)
1472 ## @param passwordUpdateJob.extraCommands Extra commands to pass to the generation job
1475 ## @param passwordUpdateJob.previousPasswords.postgresPassword Previous postgres password (set if the password secret was already changed)
1476 ## @param passwordUpdateJob.previousPasswords.password Previous password (set if the password secret was already changed)
1477 ## @param passwordUpdateJob.previousPasswords.replicationPassword Previous replication password (set if the password secret was already changed)
1478 ## @param passwordUpdateJob.previousPasswords.existingSecret Name of a secret containing the previous passwords (set if the password secret was already changed)
1480 postgresPassword: ""
1482 replicationPassword: ""
1484 ## Configure Container Security Context
1485 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1486 ## @param passwordUpdateJob.containerSecurityContext.enabled Enabled containers' Security Context
1487 ## @param passwordUpdateJob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1488 ## @param passwordUpdateJob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1489 ## @param passwordUpdateJob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1490 ## @param passwordUpdateJob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1491 ## @param passwordUpdateJob.containerSecurityContext.privileged Set container's Security Context privileged
1492 ## @param passwordUpdateJob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1493 ## @param passwordUpdateJob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1494 ## @param passwordUpdateJob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1495 ## @param passwordUpdateJob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1497 containerSecurityContext:
1504 readOnlyRootFilesystem: true
1505 allowPrivilegeEscalation: false
1509 type: "RuntimeDefault"
1510 ## Configure Pods Security Context
1511 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1512 ## @param passwordUpdateJob.podSecurityContext.enabled Enabled credential init job pods' Security Context
1513 ## @param passwordUpdateJob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1514 ## @param passwordUpdateJob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1515 ## @param passwordUpdateJob.podSecurityContext.supplementalGroups Set filesystem extra groups
1516 ## @param passwordUpdateJob.podSecurityContext.fsGroup Set credential init job pod's Security Context fsGroup
1520 fsGroupChangePolicy: Always
1522 supplementalGroups: []
1524 ## @param passwordUpdateJob.extraEnvVars Array containing extra env vars to configure the credential init job
1527 ## - name: GF_DEFAULT_INSTANCE_NAME
1528 ## value: my-instance
1531 ## @param passwordUpdateJob.extraEnvVarsCM ConfigMap containing extra env vars to configure the credential init job
1534 ## @param passwordUpdateJob.extraEnvVarsSecret Secret containing extra env vars to configure the credential init job (in case of sensitive data)
1536 extraEnvVarsSecret: ""
1537 ## @param passwordUpdateJob.extraVolumes Optionally specify extra list of additional volumes for the credential init job
1540 ## @param passwordUpdateJob.extraVolumeMounts Array of extra volume mounts to be added to the jwt Container (evaluated as template). Normally used with `extraVolumes`.
1542 extraVolumeMounts: []
1543 ## @param passwordUpdateJob.initContainers Add additional init containers for the mysql Primary pod(s)
1546 ## Container resource requests and limits
1547 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1548 ## @param passwordUpdateJob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if passwordUpdateJob.resources is set (passwordUpdateJob.resources is recommended for production).
1550 resourcesPreset: "micro"
1551 ## @param passwordUpdateJob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1562 ## @param passwordUpdateJob.customLivenessProbe Custom livenessProbe that overrides the default one
1564 customLivenessProbe: {}
1565 ## @param passwordUpdateJob.customReadinessProbe Custom readinessProbe that overrides the default one
1567 customReadinessProbe: {}
1568 ## @param passwordUpdateJob.customStartupProbe Custom startupProbe that overrides the default one
1570 customStartupProbe: {}
1571 ## @param passwordUpdateJob.automountServiceAccountToken Mount Service Account token in pod
1573 automountServiceAccountToken: false
1574 ## @param passwordUpdateJob.hostAliases Add deployment host aliases
1575 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1578 ## @param passwordUpdateJob.annotations [object] Add annotations to the job
1581 ## @param passwordUpdateJob.podLabels Additional pod labels
1582 ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1585 ## @param passwordUpdateJob.podAnnotations Additional pod annotations
1586 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1589## @section Volume Permissions parameters
1592## Init containers parameters:
1593## volumePermissions: Change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each node
1596 ## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume
1599 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
1600 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
1601 ## @skip volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended)
1602 ## @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
1603 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
1604 ## @param volumePermissions.image.pullSecrets Init container volume-permissions image pull secrets
1608 repository: chainguard-private/os-shell-iamguarded
1610 digest: sha256:40960e7e0062af307b2944c9ebfdde9997b9bbd7965de7d9c88988b3d2d6d555
1611 pullPolicy: IfNotPresent
1612 ## Optionally specify an array of imagePullSecrets.
1613 ## Secrets must be manually created in the namespace.
1614 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1617 ## - myRegistryKeySecretName
1620 ## Init container resource requests and limits
1621 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1622 ## @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).
1624 resourcesPreset: "nano"
1625 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1636 ## Init container' Security Context
1637 ## Note: the chown of the data folder is done to containerSecurityContext.runAsUser
1638 ## and not the below volumePermissions.containerSecurityContext.runAsUser
1639 ## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1640 ## @param volumePermissions.containerSecurityContext.runAsUser User ID for the init container
1641 ## @param volumePermissions.containerSecurityContext.runAsGroup Group ID for the init container
1642 ## @param volumePermissions.containerSecurityContext.runAsNonRoot runAsNonRoot for the init container
1643 ## @param volumePermissions.containerSecurityContext.seccompProfile.type seccompProfile.type for the init container
1645 containerSecurityContext:
1651 type: RuntimeDefault
1652## @section Other Parameters
1655## @param serviceBindings.enabled Create secret for service binding (Experimental)
1656## Ref: https://servicebinding.io/service-provider/
1660## Service account for PostgreSQL to use.
1661## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1664 ## @param serviceAccount.create Enable creation of ServiceAccount for PostgreSQL pod
1667 ## @param serviceAccount.name The name of the ServiceAccount to use.
1668 ## If not set and create is true, a name is generated using the common.names.fullname template
1671 ## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
1672 ## Can be set to false if pods using this serviceAccount do not need to use K8s API
1674 automountServiceAccountToken: false
1675 ## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
1678## Creates role for ServiceAccount
1679## @param rbac.create Create Role and RoleBinding (required for PSP to work)
1683 ## @param rbac.rules Custom RBAC rules to set
1695## Pod Security Policy
1696## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
1697## @param psp.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
1701## @section Metrics Parameters
1704 ## @param metrics.enabled Start a prometheus exporter
1707 ## @param metrics.image.registry [default: REGISTRY_NAME] PostgreSQL Prometheus Exporter image registry
1708 ## @param metrics.image.repository [default: REPOSITORY_NAME/postgres-exporter] PostgreSQL Prometheus Exporter image repository
1709 ## @skip metrics.image.tag PostgreSQL Prometheus Exporter image tag (immutable tags are recommended)
1710 ## @param metrics.image.digest PostgreSQL image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1711 ## @param metrics.image.pullPolicy PostgreSQL Prometheus Exporter image pull policy
1712 ## @param metrics.image.pullSecrets Specify image pull secrets
1716 repository: chainguard-private/prometheus-postgres-exporter-iamguarded
1718 digest: sha256:4b4dbbbf1c62fe94f3b6b6f11ab0eec39254ffa3f1673600ffb7c7295e0034cb
1719 pullPolicy: IfNotPresent
1720 ## Optionally specify an array of imagePullSecrets.
1721 ## Secrets must be manually created in the namespace.
1722 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1725 ## - myRegistryKeySecretName
1728 ## @param metrics.collectors Control enabled collectors
1729 ## ref: https://github.com/prometheus-community/postgres_exporter#flags
1734 ## @param metrics.customMetrics Define additional custom metrics
1735 ## ref: https://github.com/prometheus-community/postgres_exporter#adding-new-metrics-via-a-config-file-deprecated
1738 ## 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')"
1742 ## description: "Name of the database"
1745 ## description: "Size of the database in bytes"
1748 ## @param metrics.extraEnvVars Extra environment variables to add to PostgreSQL Prometheus exporter
1749 ## see: https://github.com/prometheus-community/postgres_exporter#environment-variables
1752 ## - name: PG_EXPORTER_DISABLE_DEFAULT_METRICS
1756 ## PostgreSQL Prometheus exporter containers' Security Context
1757 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1758 ## @param metrics.containerSecurityContext.enabled Enabled containers' Security Context
1759 ## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1760 ## @param metrics.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1761 ## @param metrics.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1762 ## @param metrics.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1763 ## @param metrics.containerSecurityContext.privileged Set container's Security Context privileged
1764 ## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1765 ## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1766 ## @param metrics.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1767 ## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1769 containerSecurityContext:
1776 readOnlyRootFilesystem: true
1777 allowPrivilegeEscalation: false
1781 type: "RuntimeDefault"
1782 ## Configure extra options for PostgreSQL Prometheus exporter containers' liveness, readiness and startup probes
1783 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1784 ## @param metrics.livenessProbe.enabled Enable livenessProbe on PostgreSQL Prometheus exporter containers
1785 ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1786 ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1787 ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1788 ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1789 ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1793 initialDelaySeconds: 5
1798 ## @param metrics.readinessProbe.enabled Enable readinessProbe on PostgreSQL Prometheus exporter containers
1799 ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1800 ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1801 ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1802 ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1803 ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1807 initialDelaySeconds: 5
1812 ## @param metrics.startupProbe.enabled Enable startupProbe on PostgreSQL Prometheus exporter containers
1813 ## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1814 ## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
1815 ## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1816 ## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
1817 ## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
1821 initialDelaySeconds: 10
1824 failureThreshold: 15
1826 ## @param metrics.customLivenessProbe Custom livenessProbe that overrides the default one
1828 customLivenessProbe: {}
1829 ## @param metrics.customReadinessProbe Custom readinessProbe that overrides the default one
1831 customReadinessProbe: {}
1832 ## @param metrics.customStartupProbe Custom startupProbe that overrides the default one
1834 customStartupProbe: {}
1835 ## @param metrics.containerPorts.metrics PostgreSQL Prometheus exporter metrics container port
1839 ## PostgreSQL Prometheus exporter resource requests and limits
1840 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1841 ## @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).
1843 resourcesPreset: "nano"
1844 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1855 ## Service configuration
1858 ## @param metrics.service.ports.metrics PostgreSQL Prometheus Exporter service port
1862 ## @param metrics.service.clusterIP Static clusterIP or None for headless services
1863 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
1866 ## @param metrics.service.sessionAffinity Control where client requests go, to the same pod or round-robin
1867 ## Values: ClientIP or None
1868 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
1870 sessionAffinity: None
1871 ## @param metrics.service.annotations [object] Annotations for Prometheus to auto-discover the metrics endpoint
1874 prometheus.io/scrape: "true"
1875 prometheus.io/port: "{{ .Values.metrics.service.ports.metrics }}"
1876 ## Prometheus Operator ServiceMonitor configuration
1879 ## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using Prometheus Operator
1882 ## @param metrics.serviceMonitor.namespace Namespace for the ServiceMonitor Resource (defaults to the Release Namespace)
1885 ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
1886 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1889 ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
1890 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1893 ## @param metrics.serviceMonitor.labels Additional labels that can be used so ServiceMonitor will be discovered by Prometheus
1896 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
1899 ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
1902 ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
1904 metricRelabelings: []
1905 ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
1908 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1911 ## Custom PrometheusRule to be defined
1912 ## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
1913 ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
1916 ## @param metrics.prometheusRule.enabled Create a PrometheusRule for Prometheus Operator
1919 ## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
1922 ## @param metrics.prometheusRule.labels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
1925 ## @param metrics.prometheusRule.rules PrometheusRule definitions
1926 ## Make sure to constraint the rules to the current postgresql service.
1928 ## - alert: HugeReplicationLag
1929 ## expr: pg_replication_lag{service="{{ printf "%s-metrics" (include "postgresql.v1.chart.fullname" .) }}"} / 3600 > 1
1932 ## severity: critical
1934 ## description: replication for {{ include "postgresql.v1.chart.fullname" . }} PostgreSQL is lagging by {{ "{{ $value }}" }} hour(s).
1935 ## summary: PostgreSQL replication is lagging by {{ "{{ $value }}" }} hour(s).