DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
postgresql-ha logoHELM

postgresql-ha

Helm chart
iamguarded
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
# This file has been modified by Chainguard, Inc.
2
#
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
6
#
7
# Copyright Broadcom, Inc. All Rights Reserved.
8
# SPDX-License-Identifier: APACHE-2.0
9
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
14
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
33
##
34
global:
35
imageRegistry: ""
36
useImageTags: false
37
## E.g.
38
## imagePullSecrets:
39
## - myRegistryKeySecretName
40
##
41
imagePullSecrets: []
42
defaultStorageClass: ""
43
## Security parameters
44
##
45
security:
46
## @param global.security.allowInsecureImages Allows skipping image verification
47
allowInsecureImages: false
48
postgresql:
49
username: ""
50
password: ""
51
database: ""
52
repmgrUsername: ""
53
repmgrPassword: ""
54
repmgrDatabase: ""
55
existingSecret: ""
56
ldap:
57
bindpw: ""
58
existingSecret: ""
59
pgpool:
60
adminUsername: ""
61
adminPassword: ""
62
srCheckUsername: ""
63
srCheckPassword: ""
64
existingSecret: ""
65
## Compatibility adaptations for Kubernetes platforms
66
##
67
compatibility:
68
## Compatibility adaptations for Openshift
69
##
70
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)
72
##
73
adaptSecurityContext: auto
74
org: ""
75
## @section Common parameters
76
77
## @param kubeVersion Override Kubernetes version
78
##
79
kubeVersion: ""
80
## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
81
##
82
nameOverride: ""
83
## @param fullnameOverride String to fully override common.names.fullname template
84
##
85
fullnameOverride: ""
86
## @param namespaceOverride String to fully override common.names.namespace
87
##
88
namespaceOverride: ""
89
## @param commonLabels Common labels to add to all resources (sub-charts are not considered). Evaluated as a template
90
##
91
commonLabels: {}
92
## @param commonAnnotations Common annotations to add to all resources (sub-charts are not considered). Evaluated as a template
93
##
94
commonAnnotations: {}
95
## @param clusterDomain Kubernetes Cluster Domain
96
##
97
clusterDomain: cluster.local
98
## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
99
##
100
extraDeploy: []
101
## Diagnostic mode in the deployment
102
##
103
diagnosticMode:
104
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
105
##
106
enabled: false
107
## @param diagnosticMode.command [array] Command to override all containers in the deployment
108
##
109
command:
110
- sleep
111
## @param diagnosticMode.args [array] Args to override all containers in the deployment
112
##
113
args:
114
- infinity
115
## @section PostgreSQL with Repmgr parameters
116
postgresql:
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
124
##
125
image:
126
registry: cgr.dev
127
repository: chainguard-private/postgres-repmgr-iamguarded
128
tag: "18.7"
129
digest: sha256:8c6f0e85e39d45b96bba3a890ef4034e3c825eeabec87ffcdeb415ae2d4e3e32
130
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
131
##
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/
136
## Example:
137
## pullSecrets:
138
## - myRegistryKeySecretName
139
##
140
pullSecrets: []
141
## Set to true if you would like to see extra information on logs
142
##
143
debug: false
144
## @param postgresql.labels Labels to add to the StatefulSet. Evaluated as template
145
##
146
labels: {}
147
## @param postgresql.podLabels Labels to add to the StatefulSet pods. Evaluated as template
148
##
149
podLabels: {}
150
## @param postgresql.serviceAnnotations Provide any additional annotations for PostgreSQL service
151
##
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.
154
##
155
replicaCount: 3
156
## @param postgresql.updateStrategy.type Postgresql StatefulSet strategy type
157
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
158
## e.g:
159
## updateStrategy:
160
## type: RollingUpdate
161
## rollingUpdate:
162
## maxSurge: 25%
163
## maxUnavailable: 25%
164
##
165
updateStrategy:
166
type: RollingUpdate
167
## @param postgresql.containerPorts.postgresql PostgreSQL port
168
##
169
containerPorts:
170
postgresql: 5432
171
## @param postgresql.automountServiceAccountToken Mount Service Account token in pod
172
##
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/
176
##
177
hostAliases: []
178
## @param postgresql.hostNetwork Specify if host network should be enabled for PostgreSQL pod
179
##
180
hostNetwork: false
181
## @param postgresql.hostIPC Specify if host IPC should be enabled for PostgreSQL pod
182
##
183
hostIPC: false
184
## @param postgresql.podAnnotations Additional pod annotations
185
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
186
##
187
podAnnotations: {}
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
190
##
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
194
##
195
podAntiAffinityPreset: soft
196
## PostgreSQL node affinity preset
197
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
198
##
199
nodeAffinityPreset:
200
## @param postgresql.nodeAffinityPreset.type PostgreSQL node affinity preset type. Ignored if `postgresql.affinity` is set. Allowed values: `soft` or `hard`
201
##
202
type: ""
203
## @param postgresql.nodeAffinityPreset.key PostgreSQL node label key to match Ignored if `postgresql.affinity` is set.
204
## E.g.
205
## key: "kubernetes.io/e2e-az-name"
206
##
207
key: ""
208
## @param postgresql.nodeAffinityPreset.values PostgreSQL node label values to match. Ignored if `postgresql.affinity` is set.
209
## E.g.
210
## values:
211
## - e2e-az1
212
## - e2e-az2
213
##
214
values: []
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
218
##
219
affinity: {}
220
## @param postgresql.nodeSelector Node labels for PostgreSQL pods assignment
221
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
222
##
223
nodeSelector: {}
224
## @param postgresql.tolerations Tolerations for PostgreSQL pods assignment
225
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
226
##
227
tolerations: []
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
230
##
231
topologySpreadConstraints: []
232
## @param postgresql.priorityClassName Pod priority class
233
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
234
##
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/
238
##
239
schedulerName: ""
240
## @param postgresql.terminationGracePeriodSeconds Seconds PostgreSQL pod needs to terminate gracefully
241
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
242
##
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
251
##
252
podSecurityContext:
253
enabled: true
254
fsGroupChangePolicy: Always
255
sysctls: []
256
supplementalGroups: []
257
fsGroup: 1001
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
270
## e.g:
271
## containerSecurityContext:
272
## enabled: true
273
## capabilities:
274
## drop: ["NET_RAW"]
275
## readOnlyRootFilesystem: true
276
##
277
containerSecurityContext:
278
enabled: true
279
seLinuxOptions: {}
280
runAsUser: 1001
281
runAsGroup: 1001
282
runAsNonRoot: true
283
privileged: false
284
readOnlyRootFilesystem: true
285
allowPrivilegeEscalation: false
286
capabilities:
287
drop: ["ALL"]
288
seccompProfile:
289
type: "RuntimeDefault"
290
## @param postgresql.command Override default container command (useful when using custom images)
291
##
292
command: []
293
## @param postgresql.args Override default container args (useful when using custom images)
294
##
295
args: []
296
## @param postgresql.lifecycleHooks LifecycleHook to set additional configuration at startup, e.g. LDAP settings via REST API. Evaluated as a template
297
##
298
lifecycleHooks: {}
299
## @param postgresql.extraEnvVars Array containing extra environment variables
300
## For example:
301
## - name: PG_EXPORTER_DISABLE_DEFAULT_METRICS
302
## value: "true"
303
##
304
extraEnvVars: []
305
## @param postgresql.extraEnvVarsCM ConfigMap with extra environment variables
306
##
307
extraEnvVarsCM: ""
308
## @param postgresql.extraEnvVarsSecret Secret with extra environment variables
309
##
310
extraEnvVarsSecret: ""
311
## @param postgresql.extraVolumes Extra volumes to add to the StatefulSet
312
##
313
extraVolumes: []
314
## @param postgresql.extraVolumeMounts Extra volume mounts to add to the container. Normally used with `extraVolumes`.
315
##
316
extraVolumeMounts: []
317
## @param postgresql.initContainers Extra init containers to add to the StatefulSet
318
##
319
initContainers: []
320
## @param postgresql.sidecars Extra sidecar containers to add to the StatefulSet
321
##
322
sidecars: []
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).
330
##
331
resourcesPreset: "micro"
332
## @param postgresql.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
333
## Example:
334
## resources:
335
## requests:
336
## cpu: 2
337
## memory: 512Mi
338
## limits:
339
## cpu: 3
340
## memory: 1024Mi
341
##
342
resources: {}
343
## @param postgresql.podManagementPolicy Sets the pod management policy
344
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
345
##
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
355
##
356
livenessProbe:
357
enabled: true
358
initialDelaySeconds: 15
359
periodSeconds: 10
360
timeoutSeconds: 5
361
successThreshold: 1
362
failureThreshold: 6
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
371
##
372
readinessProbe:
373
enabled: true
374
initialDelaySeconds: 5
375
periodSeconds: 10
376
timeoutSeconds: 5
377
successThreshold: 1
378
failureThreshold: 6
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
387
##
388
startupProbe:
389
enabled: false
390
initialDelaySeconds: 5
391
periodSeconds: 10
392
timeoutSeconds: 5
393
successThreshold: 1
394
failureThreshold: 10
395
## @param postgresql.customLivenessProbe Override default liveness probe
396
##
397
customLivenessProbe: {}
398
## @param postgresql.customReadinessProbe Override default readiness probe
399
##
400
customReadinessProbe: {}
401
## @param postgresql.customStartupProbe Override default startup probe
402
##
403
customStartupProbe: {}
404
## Network Policies
405
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
406
##
407
networkPolicy:
408
## @param postgresql.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
409
##
410
enabled: true
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).
416
##
417
allowExternal: true
418
## @param postgresql.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
419
##
420
allowExternalEgress: true
421
## @param postgresql.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
422
## e.g:
423
## extraIngress:
424
## - ports:
425
## - port: 1234
426
## from:
427
## - podSelector:
428
## - matchLabels:
429
## - role: frontend
430
## - podSelector:
431
## - matchExpressions:
432
## - key: role
433
## operator: In
434
## values:
435
## - frontend
436
extraIngress: []
437
## @param postgresql.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
438
## e.g:
439
## extraEgress:
440
## - ports:
441
## - port: 1234
442
## to:
443
## - podSelector:
444
## - matchLabels:
445
## - role: frontend
446
## - podSelector:
447
## - matchExpressions:
448
## - key: role
449
## operator: In
450
## values:
451
## - frontend
452
##
453
extraEgress: []
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
456
##
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.
463
##
464
pdb:
465
create: true
466
minAvailable: ""
467
maxUnavailable: ""
468
## PostgreSQL authentication parameters
469
## @param postgresql.username PostgreSQL username
470
## @param postgresql.password PostgreSQL password
471
## @param postgresql.database PostgreSQL database
472
##
473
username: postgres
474
password: ""
475
database: ""
476
## @param postgresql.existingSecret PostgreSQL password using existing secret
477
##
478
existingSecret: ""
479
## @param postgresql.postgresPassword PostgreSQL password for the `postgres` user when `username` is not `postgres`
480
##
481
postgresPassword: ""
482
## @param postgresql.usePasswordFiles Set to `true` to mount PostgreSQL secret as a file instead of passing environment variable
483
##
484
usePasswordFiles: true
485
## @param postgresql.pgHbaTrustAll Configures PostgreSQL HBA to trust every user
486
##
487
pgHbaTrustAll: false
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
490
##
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
494
##
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
511
##
512
repmgrUsername: repmgr
513
repmgrPassword: ""
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)
527
##
528
usePgRewind: false
529
## Audit settings
530
##
531
audit:
532
## @param postgresql.audit.logHostname Add client hostnames to the log file
533
##
534
logHostname: true
535
## @param postgresql.audit.logConnections Add client log-in operations to the log file
536
##
537
logConnections: false
538
## @param postgresql.audit.logDisconnections Add client log-outs operations to the log file
539
##
540
logDisconnections: false
541
## @param postgresql.audit.pgAuditLog Add operations to log using the pgAudit extension
542
##
543
pgAuditLog: ""
544
## @param postgresql.audit.pgAuditLogCatalog Log catalog using pgAudit
545
##
546
pgAuditLogCatalog: "off"
547
## @param postgresql.audit.clientMinMessages Message log level to share with the user
548
##
549
clientMinMessages: error
550
## @param postgresql.audit.logLinePrefix Template string for the log line prefix
551
##
552
logLinePrefix: ""
553
## @param postgresql.audit.logTimezone Timezone for the log timestamps
554
##
555
logTimezone: ""
556
## @param postgresql.sharedPreloadLibraries Shared preload libraries (comma-separated list)
557
##
558
sharedPreloadLibraries: "pgaudit, repmgr"
559
## @param postgresql.maxConnections Maximum total connections
560
##
561
maxConnections: ""
562
## @param postgresql.postgresConnectionLimit Maximum connections for the postgres user
563
##
564
postgresConnectionLimit: ""
565
## @param postgresql.dbUserConnectionLimit Maximum connections for the created user
566
##
567
dbUserConnectionLimit: ""
568
## @param postgresql.tcpKeepalivesInterval TCP keepalives interval
569
##
570
tcpKeepalivesInterval: ""
571
## @param postgresql.tcpKeepalivesIdle TCP keepalives idle
572
##
573
tcpKeepalivesIdle: ""
574
## @param postgresql.tcpKeepalivesCount TCP keepalives count
575
##
576
tcpKeepalivesCount: ""
577
## @param postgresql.statementTimeout Statement timeout
578
##
579
statementTimeout: ""
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)
582
##
583
pghbaRemoveFilters: ""
584
## @param postgresql.extraInitContainers Extra init containers
585
## Example:
586
## extraInitContainers:
587
## - name: do-something
588
## image: busybox
589
## command: ['do', 'something']
590
##
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
595
## Example:
596
## repmgrConfiguration: |-
597
## ssh_options='-o "StrictHostKeyChecking no" -v'
598
## use_replication_slots='1'
599
## ...
600
##
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
605
## Example:
606
## configuration: |-
607
## listen_addresses = '*'
608
## port = '5432'
609
## ...
610
##
611
configuration: ""
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
615
## Example:
616
## pgHbaConfiguration: |-
617
## host all repmgr 0.0.0.0/0 md5
618
## host repmgr repmgr 0.0.0.0/0 md
619
## ...
620
##
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
624
##
625
configurationCM: ""
626
## @param postgresql.extendedConf Extended PostgreSQL configuration (requires `volumePermissions.enabled` to be `true`)
627
## Similar to postgresql.configuration, but _appended_ to the main configuration
628
## Example:
629
## extendedConf: |-
630
## deadlock_timeout = 1s
631
## max_locks_per_transaction = 64
632
## ...
633
##
634
extendedConf: ""
635
## @param postgresql.extendedConfCM ConfigMap with PostgreSQL extended configuration (requires `volumePermissions.enabled` to be `true`)
636
## NOTE: This will override postgresql.extendedConf
637
##
638
extendedConfCM: ""
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`
642
## e.g:
643
## initdbScripts:
644
## my_init_script.sh: |
645
## #!/bin/sh
646
## echo "Do something."
647
##
648
initdbScripts: {}
649
## @param postgresql.initdbScriptsCM ConfigMap with scripts to be run at first boot
650
## NOTE: This will override initdbScripts
651
##
652
initdbScriptsCM: ""
653
## @param postgresql.initdbScriptsSecret Secret with scripts to be run at first boot
654
## Note: can be used with initdbScriptsCM or initdbScripts
655
##
656
initdbScriptsSecret: ""
657
## TLS configuration
658
##
659
tls:
660
## @param postgresql.tls.enabled Enable TLS traffic support for end-client connections
661
##
662
enabled: false
663
## @param postgresql.tls.preferServerCiphers Whether to use the server's TLS cipher preferences rather than the client's
664
##
665
preferServerCiphers: true
666
## @param postgresql.tls.certificatesSecret Name of an existing secret that contains the certificates
667
##
668
certificatesSecret: ""
669
## @param postgresql.tls.certFilename Certificate filename
670
##
671
certFilename: ""
672
## @param postgresql.tls.certKeyFilename Certificate key filename
673
##
674
certKeyFilename: ""
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
682
##
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
690
## upgrade.
691
##
692
headlessWithNotReadyAddresses: false
693
witness:
694
## @param witness.create Create PostgreSQL witness nodes
695
##
696
create: false
697
## @param witness.labels Labels to add to the StatefulSet. Evaluated as template
698
##
699
labels: {}
700
## @param witness.podLabels Labels to add to the StatefulSet pods. Evaluated as template
701
##
702
podLabels: {}
703
## @param witness.replicaCount Number of replicas to deploy.
704
##
705
replicaCount: 1
706
## @param witness.updateStrategy.type Postgresql StatefulSet strategy type
707
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
708
## e.g:
709
## updateStrategy:
710
## type: RollingUpdate
711
## rollingUpdate:
712
## maxSurge: 25%
713
## maxUnavailable: 25%
714
##
715
updateStrategy:
716
type: RollingUpdate
717
## @param witness.containerPorts.postgresql PostgreSQL witness port
718
##
719
containerPorts:
720
postgresql: 5432
721
## @param witness.automountServiceAccountToken Mount Service Account token in pod
722
##
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/
726
##
727
hostAliases: []
728
## @param witness.hostNetwork Specify if host network should be enabled for PostgreSQL witness pod
729
##
730
hostNetwork: false
731
## @param witness.hostIPC Specify if host IPC should be enabled for PostgreSQL witness pod
732
##
733
hostIPC: false
734
## @param witness.podAnnotations Additional pod annotations
735
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
736
##
737
podAnnotations: {}
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
740
##
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
744
##
745
podAntiAffinityPreset: soft
746
## PostgreSQL witness node affinity preset
747
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
748
##
749
nodeAffinityPreset:
750
## @param witness.nodeAffinityPreset.type PostgreSQL witness node affinity preset type. Ignored if `witness.affinity` is set. Allowed values: `soft` or `hard`
751
##
752
type: ""
753
## @param witness.nodeAffinityPreset.key PostgreSQL witness node label key to match Ignored if `witness.affinity` is set.
754
## E.g.
755
## key: "kubernetes.io/e2e-az-name"
756
##
757
key: ""
758
## @param witness.nodeAffinityPreset.values PostgreSQL witness node label values to match. Ignored if `witness.affinity` is set.
759
## E.g.
760
## values:
761
## - e2e-az1
762
## - e2e-az2
763
##
764
values: []
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
768
##
769
affinity: {}
770
## @param witness.nodeSelector Node labels for PostgreSQL witness pods assignment
771
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
772
##
773
nodeSelector: {}
774
## @param witness.tolerations Tolerations for PostgreSQL witness pods assignment
775
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
776
##
777
tolerations: []
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
780
##
781
topologySpreadConstraints: []
782
## @param witness.priorityClassName Pod priority class
783
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
784
##
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/
788
##
789
schedulerName: ""
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
792
##
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
801
##
802
podSecurityContext:
803
enabled: true
804
fsGroupChangePolicy: Always
805
sysctls: []
806
supplementalGroups: []
807
fsGroup: 1001
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
820
## e.g:
821
## containerSecurityContext:
822
## enabled: true
823
## capabilities:
824
## drop: ["NET_RAW"]
825
## readOnlyRootFilesystem: false
826
##
827
containerSecurityContext:
828
enabled: true
829
seLinuxOptions: {}
830
runAsUser: 1001
831
runAsGroup: 1001
832
runAsNonRoot: true
833
privileged: false
834
readOnlyRootFilesystem: true
835
allowPrivilegeEscalation: false
836
capabilities:
837
drop: ["ALL"]
838
seccompProfile:
839
type: "RuntimeDefault"
840
## @param witness.command Override default container command (useful when using custom images)
841
##
842
command: []
843
## @param witness.args Override default container args (useful when using custom images)
844
##
845
args: []
846
## @param witness.lifecycleHooks LifecycleHook to set additional configuration at startup, e.g. LDAP settings via REST API. Evaluated as a template
847
##
848
lifecycleHooks: {}
849
## @param witness.extraEnvVars Array containing extra environment variables
850
## For example:
851
## - name: PG_EXPORTER_DISABLE_DEFAULT_METRICS
852
## value: "true"
853
##
854
extraEnvVars: []
855
## @param witness.extraEnvVarsCM ConfigMap with extra environment variables
856
##
857
extraEnvVarsCM: ""
858
## @param witness.extraEnvVarsSecret Secret with extra environment variables
859
##
860
extraEnvVarsSecret: ""
861
## @param witness.extraVolumes Extra volumes to add to the deployment
862
##
863
extraVolumes: []
864
## @param witness.extraVolumeMounts Extra volume mounts to add to the container. Normally used with `extraVolumes`.
865
##
866
extraVolumeMounts: []
867
## @param witness.initContainers Extra init containers to add to the deployment
868
##
869
initContainers: []
870
## @param witness.sidecars Extra sidecar containers to add to the deployment
871
##
872
sidecars: []
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).
880
##
881
resourcesPreset: "micro"
882
## @param witness.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
883
## Example:
884
## resources:
885
## requests:
886
## cpu: 2
887
## memory: 512Mi
888
## limits:
889
## cpu: 3
890
## memory: 1024Mi
891
##
892
resources: {}
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
901
##
902
livenessProbe:
903
enabled: true
904
initialDelaySeconds: 30
905
periodSeconds: 10
906
timeoutSeconds: 5
907
successThreshold: 1
908
failureThreshold: 6
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
917
##
918
readinessProbe:
919
enabled: true
920
initialDelaySeconds: 5
921
periodSeconds: 10
922
timeoutSeconds: 5
923
successThreshold: 1
924
failureThreshold: 6
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
933
##
934
startupProbe:
935
enabled: false
936
initialDelaySeconds: 5
937
periodSeconds: 10
938
timeoutSeconds: 5
939
successThreshold: 1
940
failureThreshold: 10
941
## @param witness.customLivenessProbe Override default liveness probe
942
##
943
customLivenessProbe: {}
944
## @param witness.customReadinessProbe Override default readiness probe
945
##
946
customReadinessProbe: {}
947
## @param witness.customStartupProbe Override default startup probe
948
##
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.
954
##
955
pdb:
956
create: true
957
minAvailable: ""
958
maxUnavailable: ""
959
## @param witness.upgradeRepmgrExtension Upgrade repmgr extension in the database
960
##
961
upgradeRepmgrExtension: false
962
## @param witness.pgHbaTrustAll Configures PostgreSQL HBA to trust every user
963
##
964
pgHbaTrustAll: false
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)
970
##
971
repmgrLogLevel: NOTICE
972
repmgrConnectTimeout: 5
973
repmgrReconnectAttempts: 2
974
repmgrReconnectInterval: 3
975
## Audit settings
976
##
977
audit:
978
## @param witness.audit.logHostname Add client hostnames to the log file
979
##
980
logHostname: true
981
## @param witness.audit.logConnections Add client log-in operations to the log file
982
##
983
logConnections: false
984
## @param witness.audit.logDisconnections Add client log-outs operations to the log file
985
##
986
logDisconnections: false
987
## @param witness.audit.pgAuditLog Add operations to log using the pgAudit extension
988
##
989
pgAuditLog: ""
990
## @param witness.audit.pgAuditLogCatalog Log catalog using pgAudit
991
##
992
pgAuditLogCatalog: "off"
993
## @param witness.audit.clientMinMessages Message log level to share with the user
994
##
995
clientMinMessages: error
996
## @param witness.audit.logLinePrefix Template string for the log line prefix
997
##
998
logLinePrefix: ""
999
## @param witness.audit.logTimezone Timezone for the log timestamps
1000
##
1001
logTimezone: ""
1002
## @param witness.maxConnections Maximum total connections
1003
##
1004
maxConnections: ""
1005
## @param witness.postgresConnectionLimit Maximum connections for the postgres user
1006
##
1007
postgresConnectionLimit: ""
1008
## @param witness.dbUserConnectionLimit Maximum connections for the created user
1009
##
1010
dbUserConnectionLimit: ""
1011
## @param witness.tcpKeepalivesInterval TCP keepalives interval
1012
##
1013
tcpKeepalivesInterval: ""
1014
## @param witness.tcpKeepalivesIdle TCP keepalives idle
1015
##
1016
tcpKeepalivesIdle: ""
1017
## @param witness.tcpKeepalivesCount TCP keepalives count
1018
##
1019
tcpKeepalivesCount: ""
1020
## @param witness.statementTimeout Statement timeout
1021
##
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)
1025
##
1026
pghbaRemoveFilters: ""
1027
## @param witness.extraInitContainers Extra init containers
1028
## Example:
1029
## extraInitContainers:
1030
## - name: do-something
1031
## image: busybox
1032
## command: ['do', 'something']
1033
##
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
1038
## Example:
1039
## repmgrConfiguration: |-
1040
## ssh_options='-o "StrictHostKeyChecking no" -v'
1041
## use_replication_slots='1'
1042
## ...
1043
##
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
1048
## Example:
1049
## configuration: |-
1050
## listen_addresses = '*'
1051
## port = '5432'
1052
## ...
1053
##
1054
configuration: ""
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
1058
## Example:
1059
## pgHbaConfiguration: |-
1060
## host all repmgr 0.0.0.0/0 md5
1061
## host repmgr repmgr 0.0.0.0/0 md
1062
## ...
1063
##
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
1067
##
1068
configurationCM: ""
1069
## @param witness.extendedConf Extended PostgreSQL configuration (requires `volumePermissions.enabled` to be `true`)
1070
## Similar to witness.configuration, but _appended_ to the main configuration
1071
## Example:
1072
## extendedConf: |-
1073
## deadlock_timeout = 1s
1074
## max_locks_per_transaction = 64
1075
## ...
1076
##
1077
extendedConf: ""
1078
## @param witness.extendedConfCM ConfigMap with PostgreSQL extended configuration (requires `volumePermissions.enabled` to be `true`)
1079
## NOTE: This will override witness.extendedConf
1080
##
1081
extendedConfCM: ""
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`
1085
## e.g:
1086
## initdbScripts:
1087
## my_init_script.sh: |
1088
## #!/bin/sh
1089
## echo "Do something."
1090
##
1091
initdbScripts: {}
1092
## @param witness.initdbScriptsCM ConfigMap with scripts to be run at first boot
1093
## NOTE: This will override initdbScripts
1094
##
1095
initdbScriptsCM: ""
1096
## @param witness.initdbScriptsSecret Secret with scripts to be run at first boot
1097
## Note: can be used with initdbScriptsCM or initdbScripts
1098
##
1099
initdbScriptsSecret: ""
1100
## @section Pgpool-II parameters
1101
1102
## Pgpool-II parameters
1103
##
1104
pgpool:
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
1113
##
1114
image:
1115
registry: cgr.dev
1116
repository: chainguard-private/pgpool2-iamguarded
1117
tag: 4.7.3
1118
digest: sha256:d99a73502e275aa954582c6544cd19e9ce1fdd129cd6db98f53eabeb78f9a369
1119
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1120
##
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/
1125
## Example:
1126
## pullSecrets:
1127
## - myRegistryKeySecretName
1128
##
1129
pullSecrets: []
1130
## Set to true if you would like to see extra information on logs
1131
##
1132
debug: false
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.
1136
## e.g:
1137
## customUsers:
1138
## usernames: "user01;user02"
1139
## passwords: "pass01;pass02"
1140
customUsers:
1141
usernames: ""
1142
passwords: ""
1143
## @param pgpool.automountServiceAccountToken Mount Service Account token in pod
1144
##
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/
1148
##
1149
hostAliases: []
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.
1152
##
1153
customUsersSecret: ""
1154
## @param pgpool.existingSecret Pgpool-II admin password using existing secret
1155
##
1156
existingSecret: ""
1157
## @param pgpool.labels Labels to add to the Deployment. Evaluated as template
1158
##
1159
labels: {}
1160
## @param pgpool.podLabels Labels to add to the pods. Evaluated as template
1161
##
1162
podLabels: {}
1163
## @param pgpool.serviceLabels Labels to add to the service. Evaluated as template
1164
##
1165
serviceLabels: {}
1166
## @param pgpool.serviceAnnotations Provide any additional annotations for Pgpool-II service
1167
##
1168
serviceAnnotations: {}
1169
## @param pgpool.customLivenessProbe Override default liveness probe
1170
##
1171
customLivenessProbe: {}
1172
## @param pgpool.customReadinessProbe Override default readiness probe
1173
##
1174
customReadinessProbe: {}
1175
## @param pgpool.customStartupProbe Override default startup probe
1176
##
1177
customStartupProbe: {}
1178
## @param pgpool.command Override default container command (useful when using custom images)
1179
##
1180
command: []
1181
## @param pgpool.args Override default container args (useful when using custom images)
1182
##
1183
args: []
1184
## @param pgpool.lifecycleHooks LifecycleHook to set additional configuration at startup, e.g. LDAP settings via REST API. Evaluated as a template
1185
##
1186
lifecycleHooks: {}
1187
## @param pgpool.extraEnvVars Array containing extra environment variables
1188
## For example:
1189
## - name: BEARER_AUTH
1190
## value: true
1191
##
1192
extraEnvVars: []
1193
## @param pgpool.extraEnvVarsCM ConfigMap with extra environment variables
1194
##
1195
extraEnvVarsCM: ""
1196
## @param pgpool.extraEnvVarsSecret Secret with extra environment variables
1197
##
1198
extraEnvVarsSecret: ""
1199
## @param pgpool.extraVolumes Extra volumes to add to the deployment
1200
##
1201
extraVolumes: []
1202
## @param pgpool.extraVolumeMounts Extra volume mounts to add to the container. Normally used with `extraVolumes`
1203
##
1204
extraVolumeMounts: []
1205
## @param pgpool.initContainers Extra init containers to add to the deployment
1206
##
1207
initContainers: []
1208
## @param pgpool.sidecars Extra sidecar containers to add to the deployment
1209
##
1210
sidecars: []
1211
## @param pgpool.replicaCount The number of replicas to deploy
1212
##
1213
replicaCount: 1
1214
## @param pgpool.podAnnotations Additional pod annotations
1215
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1216
##
1217
podAnnotations: {}
1218
## @param pgpool.priorityClassName Pod priority class
1219
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1220
##
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/
1224
##
1225
schedulerName: ""
1226
## @param pgpool.terminationGracePeriodSeconds Seconds pgpool pod needs to terminate gracefully
1227
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1228
##
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
1232
##
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
1236
##
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
1240
##
1241
podAntiAffinityPreset: soft
1242
## Pgpool-II node affinity preset
1243
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1244
##
1245
nodeAffinityPreset:
1246
## @param pgpool.nodeAffinityPreset.type Pgpool-II node affinity preset type. Ignored if `pgpool.affinity` is set. Allowed values: `soft` or `hard`
1247
##
1248
type: ""
1249
## @param pgpool.nodeAffinityPreset.key Pgpool-II node label key to match Ignored if `pgpool.affinity` is set.
1250
## E.g.
1251
## key: "kubernetes.io/e2e-az-name"
1252
##
1253
key: ""
1254
## @param pgpool.nodeAffinityPreset.values Pgpool-II node label values to match. Ignored if `pgpool.affinity` is set.
1255
## E.g.
1256
## values:
1257
## - e2e-az1
1258
## - e2e-az2
1259
##
1260
values: []
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
1264
##
1265
affinity: {}
1266
## @param pgpool.nodeSelector Node labels for Pgpool-II pods assignment
1267
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1268
##
1269
nodeSelector: {}
1270
## @param pgpool.tolerations Tolerations for Pgpool-II pods assignment
1271
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1272
##
1273
tolerations: []
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
1281
##
1282
podSecurityContext:
1283
enabled: true
1284
fsGroupChangePolicy: Always
1285
sysctls: []
1286
supplementalGroups: []
1287
fsGroup: 1001
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
1300
## e.g:
1301
## containerSecurityContext:
1302
## enabled: true
1303
## capabilities:
1304
## drop: ["NET_RAW"]
1305
## readOnlyRootFilesystem: false
1306
##
1307
containerSecurityContext:
1308
enabled: true
1309
seLinuxOptions: {}
1310
runAsUser: 1001
1311
runAsGroup: 1001
1312
runAsNonRoot: true
1313
privileged: false
1314
readOnlyRootFilesystem: true
1315
allowPrivilegeEscalation: false
1316
capabilities:
1317
drop: ["ALL"]
1318
seccompProfile:
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).
1327
##
1328
resourcesPreset: "micro"
1329
## @param pgpool.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1330
## Example:
1331
## resources:
1332
## requests:
1333
## cpu: 2
1334
## memory: 512Mi
1335
## limits:
1336
## cpu: 3
1337
## memory: 1024Mi
1338
##
1339
resources: {}
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
1348
##
1349
livenessProbe:
1350
enabled: true
1351
initialDelaySeconds: 30
1352
periodSeconds: 10
1353
timeoutSeconds: 5
1354
successThreshold: 1
1355
failureThreshold: 3
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
1364
##
1365
readinessProbe:
1366
enabled: true
1367
initialDelaySeconds: 5
1368
periodSeconds: 5
1369
timeoutSeconds: 5
1370
successThreshold: 1
1371
failureThreshold: 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
1380
##
1381
startupProbe:
1382
enabled: false
1383
initialDelaySeconds: 5
1384
periodSeconds: 10
1385
timeoutSeconds: 5
1386
successThreshold: 1
1387
failureThreshold: 10
1388
## Network Policies
1389
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1390
##
1391
networkPolicy:
1392
## @param pgpool.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1393
##
1394
enabled: true
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).
1400
##
1401
allowExternal: true
1402
## @param pgpool.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1403
##
1404
allowExternalEgress: true
1405
## @param pgpool.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1406
## e.g:
1407
## extraIngress:
1408
## - ports:
1409
## - port: 1234
1410
## from:
1411
## - podSelector:
1412
## - matchLabels:
1413
## - role: frontend
1414
## - podSelector:
1415
## - matchExpressions:
1416
## - key: role
1417
## operator: In
1418
## values:
1419
## - frontend
1420
extraIngress: []
1421
## @param pgpool.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1422
## e.g:
1423
## extraEgress:
1424
## - ports:
1425
## - port: 1234
1426
## to:
1427
## - podSelector:
1428
## - matchLabels:
1429
## - role: frontend
1430
## - podSelector:
1431
## - matchExpressions:
1432
## - key: role
1433
## operator: In
1434
## values:
1435
## - frontend
1436
##
1437
extraEgress: []
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
1440
##
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.
1447
##
1448
pdb:
1449
create: true
1450
minAvailable: ""
1451
maxUnavailable: ""
1452
## @param pgpool.updateStrategy Strategy used to replace old Pods by new ones
1453
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
1454
##
1455
updateStrategy: {}
1456
## @param pgpool.containerPorts.postgresql Pgpool-II port
1457
##
1458
containerPorts:
1459
postgresql: 5432
1460
## @param pgpool.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
1461
##
1462
minReadySeconds: ""
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
1469
##
1470
adminUsername: admin
1471
adminPassword: ""
1472
srCheckUsername: "sr_check_user"
1473
srCheckPassword: ""
1474
srCheckDatabase: postgres
1475
## @param pgpool.usePasswordFiles Set to `true` to mount pgpool secret as a file instead of passing environment variable
1476
##
1477
usePasswordFiles: true
1478
## Authentication method for pgpool container (PGPOOL_AUTHENTICATION_METHOD)
1479
## @param pgpool.authenticationMethod Pgpool authentication method. Use 'md5' for PSQL < 14.
1480
##
1481
authenticationMethod: scram-sha-256
1482
## @param pgpool.logConnections Log all client connections (PGPOOL_ENABLE_LOG_CONNECTIONS)
1483
##
1484
logConnections: false
1485
## @param pgpool.logHostname Log the client hostname instead of IP address (PGPOOL_ENABLE_LOG_HOSTNAME)
1486
##
1487
logHostname: true
1488
## @param pgpool.logPcpProcesses Log PCP processes (PGPOOL_ENABLE_LOG_PCP_PROCESSES)
1489
##
1490
logPcpProcesses: true
1491
## @param pgpool.logPerNodeStatement Log every SQL statement for each DB node separately (PGPOOL_ENABLE_LOG_PER_NODE_STATEMENT)
1492
##
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
1496
##
1497
logLinePrefix: ""
1498
## @param pgpool.clientMinMessages Log level for clients
1499
##
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)
1503
##
1504
numInitChildren: ""
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).
1509
##
1510
reservedConnections: 1
1511
## @param pgpool.maxPool The maximum number of cached connections in each child process (PGPOOL_MAX_POOL)
1512
##
1513
maxPool: ""
1514
## @param pgpool.childMaxConnections The maximum number of client connections in each child process (PGPOOL_CHILD_MAX_CONNECTIONS)
1515
##
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)
1518
##
1519
childLifeTime: ""
1520
## @param pgpool.clientIdleLimit The time in seconds to disconnect a client if it remains idle since the last query (PGPOOL_CLIENT_IDLE_LIMIT)
1521
##
1522
clientIdleLimit: ""
1523
## @param pgpool.connectionLifeTime The time in seconds to terminate the cached connections to the PostgreSQL backend (PGPOOL_CONNECTION_LIFE_TIME)
1524
##
1525
connectionLifeTime: ""
1526
## @param pgpool.useConnectionCache Use connection cache (PGPOOL_ENABLE_CONNECTION_CACHE)
1527
##
1528
useConnectionCache: true
1529
## @param pgpool.useLoadBalancing Use Pgpool-II Load-Balancing
1530
##
1531
useLoadBalancing: true
1532
## @param pgpool.disableLoadBalancingOnWrite LoadBalancer on write actions behavior
1533
## one of: [off, transaction, trans_transaction, always]
1534
##
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
1539
## Example:
1540
## configuration: |-
1541
## listen_addresses = '*'
1542
## port = '5432'
1543
## ...
1544
##
1545
configuration: ""
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
1549
## Example:
1550
## poolHbaConfiguration: |-
1551
## host all repmgr 0.0.0.0/0 md5
1552
## host repmgr repmgr 0.0.0.0/0 md
1553
## ...
1554
##
1555
poolHbaConfiguration: ""
1556
## @param pgpool.configurationCM ConfigMap with Pgpool-II configuration
1557
## NOTE: This will override pgpool.configuration and pgpool.poolHbaConfiguration parameters
1558
##
1559
configurationCM: ""
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`
1563
## e.g:
1564
## initdbScripts:
1565
## my_init_script.sh: |
1566
## #!/bin/sh
1567
## echo "Do something."
1568
##
1569
initdbScripts: {}
1570
## @param pgpool.initdbScriptsCM ConfigMap with scripts to be run every time Pgpool-II container is initialized
1571
## NOTE: This will override pgpool.initdbScripts
1572
##
1573
initdbScriptsCM: ""
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
1576
##
1577
initdbScriptsSecret: ""
1578
##
1579
## TLS configuration
1580
##
1581
tls:
1582
## @param pgpool.tls.enabled Enable TLS traffic support for end-client connections
1583
##
1584
enabled: false
1585
## @param pgpool.tls.autoGenerated Create self-signed TLS certificates. Currently only supports PEM certificates
1586
##
1587
autoGenerated: false
1588
## @param pgpool.tls.preferServerCiphers Whether to use the server's TLS cipher preferences rather than the client's
1589
##
1590
preferServerCiphers: true
1591
## @param pgpool.tls.certificatesSecret Name of an existing secret that contains the certificates
1592
##
1593
certificatesSecret: ""
1594
## @param pgpool.tls.certFilename Certificate filename
1595
##
1596
certFilename: ""
1597
## @param pgpool.tls.certKeyFilename Certificate key filename
1598
##
1599
certKeyFilename: ""
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
1603
##
1604
certCAFilename: ""
1605
## @section LDAP parameters
1606
1607
## 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
1620
##
1621
ldap:
1622
enabled: false
1623
existingSecret: ""
1624
uri: ""
1625
basedn: ""
1626
binddn: ""
1627
bindpw: ""
1628
bslookup: ""
1629
scope: ""
1630
searchfilter: ""
1631
searchmap: ""
1632
tlsReqcert: ""
1633
nssInitgroupsIgnoreusers: root,nslcd
1634
## @section Other Parameters
1635
1636
## RBAC configuration
1637
## Required for PSP
1638
##
1639
rbac:
1640
## @param rbac.create Create Role and RoleBinding (required for PSP to work)
1641
##
1642
create: false
1643
## @param rbac.rules Custom RBAC rules to set
1644
## e.g:
1645
## rules:
1646
## - apiGroups:
1647
## - ""
1648
## resources:
1649
## - pods
1650
## verbs:
1651
## - get
1652
## - list
1653
##
1654
rules: []
1655
## ServiceAccount configuration
1656
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1657
##
1658
serviceAccount:
1659
## @param serviceAccount.create Specifies whether a ServiceAccount should be created
1660
##
1661
create: true
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
1664
##
1665
name: ""
1666
## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
1667
##
1668
annotations: {}
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
1671
##
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
1676
##
1677
psp:
1678
create: false
1679
## @section Metrics parameters
1680
1681
## PostgreSQL Prometheus exporter parameters
1682
##
1683
metrics:
1684
## Iamguarded PostgreSQL Prometheus exporter image
1685
## @param metrics.enabled Enable PostgreSQL Prometheus exporter
1686
##
1687
enabled: false
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
1695
##
1696
image:
1697
registry: cgr.dev
1698
repository: chainguard-private/prometheus-postgres-exporter-iamguarded
1699
tag: 0.21.1
1700
digest: sha256:4b4dbbbf1c62fe94f3b6b6f11ab0eec39254ffa3f1673600ffb7c7295e0034cb
1701
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1702
##
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/
1707
## Example:
1708
## pullSecrets:
1709
## - myRegistryKeySecretName
1710
##
1711
pullSecrets: []
1712
## Set to true if you would like to see extra information on logs
1713
##
1714
debug: false
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
1723
##
1724
podSecurityContext:
1725
enabled: true
1726
seLinuxOptions: {}
1727
runAsUser: 1001
1728
runAsGroup: 1001
1729
runAsNonRoot: true
1730
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).
1739
##
1740
resourcesPreset: "nano"
1741
## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1742
## Example:
1743
## resources:
1744
## requests:
1745
## cpu: 2
1746
## memory: 512Mi
1747
## limits:
1748
## cpu: 3
1749
## memory: 1024Mi
1750
##
1751
resources: {}
1752
## @param metrics.containerPorts.http Prometheus metrics exporter port
1753
##
1754
containerPorts:
1755
http: 9187
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
1764
##
1765
livenessProbe:
1766
enabled: true
1767
initialDelaySeconds: 30
1768
periodSeconds: 10
1769
timeoutSeconds: 5
1770
successThreshold: 1
1771
failureThreshold: 6
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
1780
##
1781
readinessProbe:
1782
enabled: true
1783
initialDelaySeconds: 5
1784
periodSeconds: 10
1785
timeoutSeconds: 5
1786
successThreshold: 1
1787
failureThreshold: 6
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
1796
##
1797
startupProbe:
1798
enabled: false
1799
initialDelaySeconds: 5
1800
periodSeconds: 10
1801
timeoutSeconds: 5
1802
successThreshold: 1
1803
failureThreshold: 10
1804
## @param metrics.customLivenessProbe Override default liveness probe
1805
##
1806
customLivenessProbe: {}
1807
## @param metrics.customReadinessProbe Override default readiness probe
1808
##
1809
customReadinessProbe: {}
1810
## @param metrics.customStartupProbe Override default startup probe
1811
##
1812
customStartupProbe: {}
1813
## Metrics service parameters
1814
##
1815
service:
1816
## @param metrics.service.enabled PostgreSQL Prometheus exporter metrics service enabled
1817
##
1818
enabled: true
1819
## @param metrics.service.type PostgreSQL Prometheus exporter metrics service type
1820
##
1821
type: ClusterIP
1822
## @param metrics.service.ports.metrics PostgreSQL Prometheus exporter metrics service port
1823
##
1824
ports:
1825
metrics: 9187
1826
## @param metrics.service.nodePorts.metrics PostgreSQL Prometheus exporter Node Port
1827
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1828
##
1829
nodePorts:
1830
metrics: ""
1831
## @param metrics.service.clusterIP PostgreSQL Prometheus exporter metrics service Cluster IP
1832
## e.g.:
1833
## clusterIP: None
1834
##
1835
clusterIP: ""
1836
## @param metrics.service.loadBalancerIP PostgreSQL Prometheus exporter service Load Balancer IP
1837
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1838
##
1839
loadBalancerIP: ""
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
1842
## e.g:
1843
## loadBalancerSourceRanges:
1844
## - 10.10.10.0/24
1845
##
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
1849
##
1850
externalTrafficPolicy: Cluster
1851
## @param metrics.annotations [object] Annotations for PostgreSQL Prometheus exporter service
1852
##
1853
annotations:
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
1858
## customMetrics:
1859
## pg_database:
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')"
1861
## metrics:
1862
## - name:
1863
## usage: "LABEL"
1864
## description: "Name of the database"
1865
## - size_bytes:
1866
## usage: "GAUGE"
1867
## description: "Size of the database in bytes"
1868
##
1869
customMetrics: {}
1870
## @param metrics.extraEnvVars Array containing extra environment variables
1871
## For example:
1872
## - name: BEARER_AUTH
1873
## value: true
1874
##
1875
extraEnvVars: []
1876
## @param metrics.extraEnvVarsCM ConfigMap with extra environment variables
1877
##
1878
extraEnvVarsCM: ""
1879
## @param metrics.extraEnvVarsSecret Secret with extra environment variables
1880
##
1881
extraEnvVarsSecret: ""
1882
## Metrics serviceMonitor parameters
1883
## Enable this if you're using Prometheus Operator
1884
##
1885
serviceMonitor:
1886
## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
1887
##
1888
enabled: false
1889
## @param metrics.serviceMonitor.namespace Optional namespace which Prometheus is running in
1890
## Fallback to the prometheus default unless specified
1891
##
1892
namespace: ""
1893
## @param metrics.serviceMonitor.interval How frequently to scrape metrics (use by default, falling back to Prometheus' default)
1894
## e.g:
1895
## interval: 10s
1896
##
1897
interval: ""
1898
## @param metrics.serviceMonitor.scrapeTimeout Service monitor scrape timeout
1899
## e.g:
1900
## scrapeTimeout: 10s
1901
##
1902
scrapeTimeout: ""
1903
## @param metrics.serviceMonitor.annotations Additional annotations for the ServiceMonitor
1904
##
1905
annotations: {}
1906
## @param metrics.serviceMonitor.labels Additional labels that can be used so ServiceMonitor will be discovered by Prometheus
1907
##
1908
labels: {}
1909
##
1910
selector:
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
1914
##
1915
relabelings: []
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
1918
##
1919
metricRelabelings: []
1920
## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
1921
##
1922
honorLabels: false
1923
## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1924
##
1925
jobLabel: ""
1926
## @section Volume permissions parameters
1927
1928
## Init Container parameters
1929
## volumePermissions: Change the owner and group of the persistent volume mountpoint
1930
##
1931
volumePermissions:
1932
## @param volumePermissions.enabled Enable init container to adapt volume permissions
1933
##
1934
enabled: false
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
1941
##
1942
image:
1943
registry: cgr.dev
1944
repository: chainguard-private/os-shell-iamguarded
1945
tag: 1.0.0
1946
digest: sha256:40960e7e0062af307b2944c9ebfdde9997b9bbd7965de7d9c88988b3d2d6d555
1947
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1948
##
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/
1953
## Example:
1954
## pullSecrets:
1955
## - myRegistryKeySecretName
1956
##
1957
pullSecrets: []
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
1966
##
1967
podSecurityContext:
1968
enabled: true
1969
seLinuxOptions: {}
1970
runAsUser: 0
1971
runAsGroup: 0
1972
runAsNonRoot: false
1973
seccompProfile:
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).
1982
##
1983
resourcesPreset: "nano"
1984
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1985
## Example:
1986
## resources:
1987
## requests:
1988
## cpu: 2
1989
## memory: 512Mi
1990
## limits:
1991
## cpu: 3
1992
## memory: 1024Mi
1993
##
1994
resources: {}
1995
## @section Persistence parameters
1996
1997
## Enable persistence using Persistent Volume Claims
1998
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1999
##
2000
persistence:
2001
## @param persistence.enabled Enable data persistence
2002
##
2003
enabled: true
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.
2008
##
2009
existingClaim: ""
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.
2015
##
2016
storageClass: ""
2017
## @param persistence.mountPath The path the volume will be mounted at, useful when using different PostgreSQL images.
2018
##
2019
mountPath: /iamguarded/postgresql
2020
## @param persistence.accessModes List of access modes of data volume
2021
##
2022
accessModes:
2023
- ReadWriteOnce
2024
## @param persistence.size Persistent Volume Claim size
2025
##
2026
size: 8Gi
2027
## @param persistence.annotations Persistent Volume Claim annotations
2028
##
2029
annotations: {}
2030
## @param persistence.labels Persistent Volume Claim labels
2031
##
2032
labels: {}
2033
## @param persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template)
2034
## selector:
2035
## matchLabels:
2036
## app: my-app
2037
##
2038
selector: {}
2039
## Persistent Volume Claim Retention Policy
2040
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
2041
##
2042
persistentVolumeClaimRetentionPolicy:
2043
## @param persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for postgresql Statefulset
2044
##
2045
enabled: false
2046
## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
2047
##
2048
whenScaled: Retain
2049
## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
2050
##
2051
whenDeleted: Retain
2052
## @section Traffic Exposure parameters
2053
2054
## PostgreSQL service parameters
2055
##
2056
service:
2057
## @param service.type Kubernetes service type (`ClusterIP`, `NodePort` or `LoadBalancer`)
2058
##
2059
type: ClusterIP
2060
## @param service.ports.postgresql PostgreSQL port
2061
##
2062
ports:
2063
postgresql: 5432
2064
## @param service.portName PostgreSQL service port name
2065
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services
2066
##
2067
portName: postgresql
2068
## @param service.nodePorts.postgresql Kubernetes service nodePort
2069
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
2070
##
2071
nodePorts:
2072
postgresql: ""
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
2076
##
2077
loadBalancerIP: ""
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
2080
##
2081
## loadBalancerSourceRanges:
2082
## - 10.10.10.0/24
2083
##
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
2088
## e.g:
2089
## clusterIP: None
2090
##
2091
clusterIP: ""
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
2094
##
2095
externalTrafficPolicy: Cluster
2096
## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
2097
##
2098
extraPorts: []
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/
2102
##
2103
sessionAffinity: "None"
2104
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
2105
## sessionAffinityConfig:
2106
## clientIP:
2107
## timeoutSeconds: 300
2108
sessionAffinityConfig: {}
2109
## @param service.annotations Provide any additional annotations both for PostgreSQL and Pgpool-II services
2110
##
2111
annotations: {}
2112
## @param service.serviceLabels Labels for PostgreSQL service
2113
##
2114
serviceLabels: {}
2115
## Headless service properties
2116
##
2117
headless:
2118
## @param service.headless.annotations Annotations for the headless service.
2119
##
2120
annotations: {}
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/
2126
backup:
2127
## @param backup.enabled Enable the logical dump of the database "regularly"
2128
enabled: false
2129
cronjob:
2130
## @param backup.cronjob.schedule Set the cronjob parameter schedule
2131
schedule: "@daily"
2132
## @param backup.cronjob.timeZone Set the cronjob parameter timeZone
2133
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
2151
podSecurityContext:
2152
enabled: true
2153
fsGroupChangePolicy: Always
2154
sysctls: []
2155
supplementalGroups: []
2156
fsGroup: 1001
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:
2169
enabled: true
2170
seLinuxOptions: {}
2171
runAsUser: 1001
2172
runAsGroup: 1001
2173
runAsNonRoot: true
2174
allowPrivilegeEscalation: false
2175
readOnlyRootFilesystem: true
2176
seccompProfile:
2177
type: RuntimeDefault
2178
capabilities:
2179
drop:
2180
- ALL
2181
## @param backup.cronjob.command Set backup container's command to run
2182
command:
2183
- /bin/bash
2184
- -c
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
2187
labels: {}
2188
## @param backup.cronjob.annotations Set the cronjob annotations
2189
annotations: {}
2190
## @param backup.cronjob.nodeSelector Node labels for PostgreSQL backup CronJob pod assignment
2191
## ref: https://kubernetes.io/docs/user-guide/node-selection/
2192
##
2193
nodeSelector: {}
2194
## @param backup.cronjob.tolerations Tolerations for PostgreSQL backup CronJob pod assignment
2195
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2196
##
2197
tolerations: []
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
2200
##
2201
podAffinityPreset: ""
2202
## PostgreSQL backup node affinity preset
2203
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
2204
##
2205
nodeAffinityPreset:
2206
## @param backup.cronjob.nodeAffinityPreset.type PostgreSQL backup node affinity preset type. Ignored if `backup.cronjob.affinity` is set. Allowed values: `soft` or `hard`
2207
##
2208
type: ""
2209
## @param backup.cronjob.nodeAffinityPreset.key PostgreSQL backup node label key to match Ignored if `backup.cronjob.affinity` is set.
2210
## E.g.
2211
## key: "kubernetes.io/e2e-az-name"
2212
##
2213
key: ""
2214
## @param backup.cronjob.nodeAffinityPreset.values PostgreSQL backup node label values to match. Ignored if `backup.cronjob.affinity` is set.
2215
## E.g.
2216
## values:
2217
## - e2e-az1
2218
## - e2e-az2
2219
##
2220
values: []
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
2224
##
2225
affinity: {}
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).
2229
##
2230
resourcesPreset: "nano"
2231
## @param backup.cronjob.resources Set container requests and limits for different resources like CPU or memory
2232
## Example:
2233
resources: {}
2234
## resources:
2235
## requests:
2236
## cpu: 1
2237
## memory: 512Mi
2238
## limits:
2239
## cpu: 2
2240
## memory: 1024Mi
2241
## @param backup.cronjob.extraEnvVars Array containing extra environment variables
2242
## For example:
2243
## - name: BEARER_AUTH
2244
## value: true
2245
##
2246
extraEnvVars: []
2247
## @param backup.cronjob.extraEnvVarsCM ConfigMap with extra environment variables
2248
##
2249
extraEnvVarsCM: ""
2250
## @param backup.cronjob.extraEnvVarsSecret Secret with extra environment variables
2251
##
2252
extraEnvVarsSecret: ""
2253
## @param backup.cronjob.extraVolumes Extra volumes to add to the backup container
2254
##
2255
extraVolumes: []
2256
## @param backup.cronjob.extraVolumeMounts Extra volume mounts to add to the backup container. Normally used with `extraVolumes`
2257
##
2258
extraVolumeMounts: []
2259
storage:
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
2262
##
2263
existingClaim: ""
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
2265
##
2266
resourcePolicy: ""
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.
2272
##
2273
storageClass: ""
2274
## @param backup.cronjob.storage.accessModes PV Access Mode
2275
##
2276
accessModes:
2277
- ReadWriteOnce
2278
## @param backup.cronjob.storage.size PVC Storage Request for the backup data volume
2279
##
2280
size: 8Gi
2281
## @param backup.cronjob.storage.annotations PVC annotations
2282
##
2283
annotations: {}
2284
## @param backup.cronjob.storage.mountPath Path to mount the volume at
2285
##
2286
mountPath: /backup/pgdump
2287
## @param backup.cronjob.storage.subPath Subdirectory of the volume to mount at
2288
## and one PV for multiple services.
2289
##
2290
subPath: ""
2291
## Fine tuning for volumeClaimTemplates
2292
##
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
2297
##
2298
selector: {}
2299

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.