DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
postgresql logoHELM

postgresql

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
## Please, note that this will override the parameters, including dependencies, configured to use the global value
12
##
13
global:
14
## @param global.imageRegistry Global Docker image registry
15
##
16
imageRegistry: ""
17
## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18
##
19
useImageTags: false
20
## @param global.imagePullSecrets Global Docker registry secret names as an array
21
## e.g.
22
## imagePullSecrets:
23
## - myRegistryKeySecretName
24
##
25
imagePullSecrets: []
26
## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
27
## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
28
##
29
defaultStorageClass: ""
30
storageClass: ""
31
## Security parameters
32
##
33
security:
34
## @param global.security.allowInsecureImages Allows skipping image verification
35
allowInsecureImages: false
36
postgresql:
37
## @param global.postgresql.fullnameOverride Full chart name (overrides `fullnameOverride`)
38
## @param global.postgresql.auth.postgresPassword Password for the "postgres" admin user (overrides `auth.postgresPassword`)
39
## @param global.postgresql.auth.username Name for a custom user to create (overrides `auth.username`)
40
## @param global.postgresql.auth.password Password for the custom user to create (overrides `auth.password`)
41
## @param global.postgresql.auth.database Name for a custom database to create (overrides `auth.database`)
42
## @param global.postgresql.auth.existingSecret Name of existing secret to use for PostgreSQL credentials (overrides `auth.existingSecret`).
43
## @param global.postgresql.auth.secretKeys.adminPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.adminPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
44
## @param global.postgresql.auth.secretKeys.userPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.userPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
45
## @param global.postgresql.auth.secretKeys.replicationPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.replicationPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
46
## @param global.postgresql.auth.secretKeys.metricsPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.metricsPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
47
##
48
fullnameOverride: ""
49
auth:
50
postgresPassword: ""
51
username: ""
52
password: ""
53
database: ""
54
existingSecret: ""
55
secretKeys:
56
adminPasswordKey: ""
57
userPasswordKey: ""
58
replicationPasswordKey: ""
59
metricsPasswordKey: ""
60
## @param global.postgresql.service.ports.postgresql PostgreSQL service port (overrides `service.ports.postgresql`)
61
##
62
service:
63
ports:
64
postgresql: ""
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
78
## @param kubeVersion Override Kubernetes version
79
##
80
kubeVersion: ""
81
## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
82
##
83
nameOverride: ""
84
## @param fullnameOverride String to fully override common.names.fullname template
85
##
86
fullnameOverride: ""
87
## @param namespaceOverride String to fully override common.names.namespace
88
##
89
namespaceOverride: ""
90
## @param clusterDomain Kubernetes Cluster Domain
91
##
92
clusterDomain: cluster.local
93
## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
94
##
95
extraDeploy: []
96
## @param commonLabels Add labels to all the deployed resources
97
##
98
commonLabels: {}
99
## @param commonAnnotations Add annotations to all the deployed resources
100
##
101
commonAnnotations: {}
102
## @param secretAnnotations Add annotations to the secrets
103
##
104
secretAnnotations: {}
105
## Enable diagnostic mode in the statefulset
106
##
107
diagnosticMode:
108
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
109
##
110
enabled: false
111
## @param diagnosticMode.command Command to override all containers in the statefulset
112
##
113
command:
114
- sleep
115
## @param diagnosticMode.args Args to override all containers in the statefulset
116
##
117
args:
118
- infinity
119
## @section PostgreSQL common parameters
120
##
121
122
## Iamguarded PostgreSQL image version
123
## @param image.registry [default: REGISTRY_NAME] PostgreSQL image registry
124
## @param image.repository [default: REPOSITORY_NAME/postgresql] PostgreSQL image repository
125
## @skip image.tag PostgreSQL image tag (immutable tags are recommended)
126
## @param image.digest PostgreSQL image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
127
## @param image.pullPolicy PostgreSQL image pull policy
128
## @param image.pullSecrets Specify image pull secrets
129
## @param image.debug Specify if debug values should be set
130
##
131
image:
132
registry: cgr.dev
133
repository: chainguard-private/postgres-iamguarded
134
tag: "18.7"
135
digest: sha256:90f2fda9268e1d852b39560aa98dd54e58f944b1f1e03075eb1739eeb0a4469c
136
## Specify a imagePullPolicy
137
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
138
##
139
pullPolicy: IfNotPresent
140
## Optionally specify an array of imagePullSecrets.
141
## Secrets must be manually created in the namespace.
142
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
143
## Example:
144
## pullSecrets:
145
## - myRegistryKeySecretName
146
##
147
pullSecrets: []
148
## Set to true if you would like to see extra information on logs
149
##
150
debug: false
151
## Authentication parameters
152
##
153
auth:
154
## @param auth.enablePostgresUser Assign a password to the "postgres" admin user. Otherwise, remote access will be blocked for this user
155
##
156
enablePostgresUser: true
157
## @param auth.postgresPassword Password for the "postgres" admin user. Ignored if `auth.existingSecret` is provided
158
##
159
postgresPassword: ""
160
## @param auth.username Name for a custom user to create
161
##
162
username: ""
163
## @param auth.password Password for the custom user to create. Ignored if `auth.existingSecret` is provided
164
##
165
password: ""
166
## @param auth.database Name for a custom database to create
167
##
168
database: ""
169
## @param auth.replicationUsername Name of the replication user
170
##
171
replicationUsername: repl_user
172
## @param auth.replicationPassword Password for the replication user. Ignored if `auth.existingSecret` is provided
173
##
174
replicationPassword: ""
175
## @param auth.metricsUsername Name of the metrics user used by postgresql exporter
176
##
177
metricsUsername: ""
178
## @param auth.metricsPassword Password for the metrics user used by postgresql exporter. Ignored if `auth.existingSecret` is provided
179
##
180
metricsPassword: ""
181
## @param auth.existingSecret Name of existing secret to use for PostgreSQL credentials. `auth.postgresPassword`, `auth.password`, and `auth.replicationPassword` will be ignored and picked up from this secret. The secret might also contains the key `ldap-password` if LDAP is enabled. `ldap.bind_password` will be ignored and picked from this secret in this case.
182
##
183
existingSecret: ""
184
## @param auth.secretKeys.adminPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
185
## @param auth.secretKeys.userPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
186
## @param auth.secretKeys.replicationPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
187
## @param auth.secretKeys.metricsPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
188
##
189
secretKeys:
190
adminPasswordKey: postgres-password
191
userPasswordKey: password
192
replicationPasswordKey: replication-password
193
metricsPasswordKey: metrics-password
194
## @param auth.usePasswordFiles Mount credentials as a files instead of using an environment variable
195
##
196
usePasswordFiles: true
197
## @param architecture PostgreSQL architecture (`standalone` or `replication`)
198
##
199
architecture: standalone
200
## Replication configuration
201
## Ignored if `architecture` is `standalone`
202
##
203
replication:
204
## @param replication.synchronousCommit Set synchronous commit mode. Allowed values: `on`, `remote_apply`, `remote_write`, `local` and `off`
205
## @param replication.numSynchronousReplicas Number of replicas that will have synchronous replication. Note: Cannot be greater than `readReplicas.replicaCount`.
206
## ref: https://www.postgresql.org/docs/current/runtime-config-wal.html#GUC-SYNCHRONOUS-COMMIT
207
##
208
synchronousCommit: "off"
209
numSynchronousReplicas: 0
210
## @param replication.applicationName Cluster application name. Useful for advanced replication settings
211
##
212
applicationName: my_application
213
## @param containerPorts.postgresql PostgreSQL container port
214
##
215
containerPorts:
216
postgresql: 5432
217
## Audit settings
218
## @param audit.logHostname Log client hostnames
219
## @param audit.logConnections Add client log-in operations to the log file
220
## @param audit.logDisconnections Add client log-outs operations to the log file
221
## @param audit.pgAuditLog Add operations to log using the pgAudit extension
222
## @param audit.pgAuditLogCatalog Log catalog using pgAudit
223
## @param audit.clientMinMessages Message log level to share with the user
224
## @param audit.logLinePrefix Template for log line prefix (default if not set)
225
## @param audit.logTimezone Timezone for the log timestamps
226
##
227
audit:
228
logHostname: false
229
logConnections: false
230
logDisconnections: false
231
pgAuditLog: ""
232
pgAuditLogCatalog: "off"
233
clientMinMessages: error
234
logLinePrefix: ""
235
logTimezone: ""
236
## LDAP configuration
237
## @param ldap.enabled Enable LDAP support
238
## @param ldap.server IP address or name of the LDAP server.
239
## @param ldap.port Port number on the LDAP server to connect to
240
## @param ldap.prefix String to prepend to the user name when forming the DN to bind
241
## @param ldap.suffix String to append to the user name when forming the DN to bind
242
## DEPRECATED ldap.baseDN It will removed in a future, please use 'ldap.basedn' instead
243
## DEPRECATED ldap.bindDN It will removed in a future, please use 'ldap.binddn' instead
244
## DEPRECATED ldap.bind_password It will removed in a future, please use 'ldap.bindpw' instead
245
## @param ldap.basedn Root DN to begin the search for the user in
246
## @param ldap.binddn DN of user to bind to LDAP
247
## @param ldap.bindpw Password for the user to bind to LDAP
248
## DEPRECATED ldap.search_attr It will removed in a future, please use 'ldap.searchAttribute' instead
249
## DEPRECATED ldap.search_filter It will removed in a future, please use 'ldap.searchFilter' instead
250
## @param ldap.searchAttribute Attribute to match against the user name in the search
251
## @param ldap.searchFilter The search filter to use when doing search+bind authentication
252
## @param ldap.scheme Set to `ldaps` to use LDAPS
253
## DEPRECATED ldap.tls as string is deprecated, please use 'ldap.tls.enabled' instead
254
## @param ldap.tls.enabled Se to true to enable TLS encryption
255
##
256
ldap:
257
enabled: false
258
server: ""
259
port: ""
260
prefix: ""
261
suffix: ""
262
basedn: ""
263
binddn: ""
264
bindpw: ""
265
searchAttribute: ""
266
searchFilter: ""
267
scheme: ""
268
tls:
269
enabled: false
270
## @param ldap.uri LDAP URL beginning in the form `ldap[s]://host[:port]/basedn`. If provided, all the other LDAP parameters will be ignored.
271
## Ref: https://www.postgresql.org/docs/current/auth-ldap.html
272
##
273
uri: ""
274
## @param postgresqlDataDir PostgreSQL data dir folder
275
##
276
postgresqlDataDir: /iamguarded/postgresql/data
277
## @param postgresqlSharedPreloadLibraries Shared preload libraries (comma-separated list)
278
##
279
postgresqlSharedPreloadLibraries: "pgaudit"
280
## Start PostgreSQL pod(s) without limitations on shm memory.
281
## By default docker and containerd (and possibly other container runtimes) limit `/dev/shm` to `64M`
282
## ref: https://github.com/docker-library/postgres/issues/416
283
## ref: https://github.com/containerd/containerd/issues/3654
284
##
285
shmVolume:
286
## @param shmVolume.enabled Enable emptyDir volume for /dev/shm for PostgreSQL pod(s)
287
##
288
enabled: true
289
## @param shmVolume.sizeLimit Set this to enable a size limit on the shm tmpfs
290
## Note: the size of the tmpfs counts against container's memory limit
291
## e.g:
292
## sizeLimit: 1Gi
293
##
294
sizeLimit: ""
295
## TLS configuration
296
##
297
tls:
298
## @param tls.enabled Enable TLS traffic support
299
##
300
enabled: false
301
## @param tls.autoGenerated Generate automatically self-signed TLS certificates
302
##
303
autoGenerated: false
304
## @param tls.preferServerCiphers Whether to use the server's TLS cipher preferences rather than the client's
305
##
306
preferServerCiphers: true
307
## @param tls.certificatesSecret Name of an existing secret that contains the certificates
308
##
309
certificatesSecret: ""
310
## @param tls.certFilename Certificate filename
311
##
312
certFilename: ""
313
## @param tls.certKeyFilename Certificate key filename
314
##
315
certKeyFilename: ""
316
## @param tls.certCAFilename CA Certificate filename
317
## If provided, PostgreSQL will authenticate TLS/SSL clients by requesting them a certificate
318
## ref: https://www.postgresql.org/docs/9.6/auth-methods.html
319
##
320
certCAFilename: ""
321
## @param tls.crlFilename File containing a Certificate Revocation List
322
##
323
crlFilename: ""
324
## @section PostgreSQL Primary parameters
325
##
326
primary:
327
## @param primary.name Name of the primary database (eg primary, master, leader, ...)
328
##
329
name: primary
330
## @param primary.configuration PostgreSQL Primary main configuration to be injected as ConfigMap
331
## ref: https://www.postgresql.org/docs/current/static/runtime-config.html
332
##
333
configuration: ""
334
## @param primary.pgHbaConfiguration PostgreSQL Primary client authentication configuration
335
## ref: https://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html
336
## e.g:#
337
## pgHbaConfiguration: |-
338
## local all all trust
339
## host all all localhost trust
340
## host mydatabase mysuser 192.168.0.0/24 md5
341
##
342
pgHbaConfiguration: ""
343
## @param primary.existingConfigmap Name of an existing ConfigMap with PostgreSQL Primary configuration
344
## NOTE: `primary.configuration` and `primary.pgHbaConfiguration` will be ignored
345
##
346
existingConfigmap: ""
347
## @param primary.extendedConfiguration Extended PostgreSQL Primary configuration (appended to main or default configuration)
348
##
349
extendedConfiguration: ""
350
## @param primary.existingExtendedConfigmap Name of an existing ConfigMap with PostgreSQL Primary extended configuration
351
## NOTE: `primary.extendedConfiguration` will be ignored
352
##
353
existingExtendedConfigmap: ""
354
## Initdb configuration
355
##
356
initdb:
357
## @param primary.initdb.args PostgreSQL initdb extra arguments
358
##
359
args: ""
360
## @param primary.initdb.postgresqlWalDir Specify a custom location for the PostgreSQL transaction log
361
##
362
postgresqlWalDir: ""
363
## @param primary.initdb.scripts Dictionary of initdb scripts
364
## Specify dictionary of scripts to be run at first boot
365
## e.g:
366
## scripts:
367
## my_init_script.sh: |
368
## #!/bin/sh
369
## echo "Do something."
370
##
371
scripts: {}
372
## @param primary.initdb.scriptsConfigMap ConfigMap with scripts to be run at first boot
373
## NOTE: This will override `primary.initdb.scripts`
374
##
375
scriptsConfigMap: ""
376
## @param primary.initdb.scriptsSecret Secret with scripts to be run at first boot (in case it contains sensitive information)
377
## NOTE: This can work along `primary.initdb.scripts` or `primary.initdb.scriptsConfigMap`
378
##
379
scriptsSecret: ""
380
## @param primary.initdb.user Specify the PostgreSQL username to execute the initdb scripts
381
##
382
user: ""
383
## @param primary.initdb.password Specify the PostgreSQL password to execute the initdb scripts
384
##
385
password: ""
386
## Pre-init configuration
387
preInitDb:
388
## @param primary.preInitDb.scripts Dictionary of pre-init scripts
389
## Specify dictionary of shell scripts to be run before db boot
390
## e.g:
391
## scripts:
392
## my_pre_init_script.sh: |
393
## #!/bin/sh
394
## echo "Do something."
395
scripts: {}
396
## @param primary.preInitDb.scriptsConfigMap ConfigMap with pre-init scripts to be run
397
## NOTE: This will override `primary.preInitDb.scripts`
398
scriptsConfigMap: ""
399
## @param primary.preInitDb.scriptsSecret Secret with pre-init scripts to be run
400
## NOTE: This can work along `primary.preInitDb.scripts` or `primary.preInitDb.scriptsConfigMap`
401
scriptsSecret: ""
402
## Configure current cluster's primary server to be the standby server in other cluster.
403
## This will allow cross cluster replication and provide cross cluster high availability.
404
## You will need to configure pgHbaConfiguration if you want to enable this feature with local cluster replication enabled.
405
## @param primary.standby.enabled Whether to enable current cluster's primary as standby server of another cluster or not
406
## @param primary.standby.primaryHost The Host of replication primary in the other cluster
407
## @param primary.standby.primaryPort The Port of replication primary in the other cluster
408
##
409
standby:
410
enabled: false
411
primaryHost: ""
412
primaryPort: ""
413
## @param primary.extraEnvVars Array with extra environment variables to add to PostgreSQL Primary nodes
414
## e.g:
415
## extraEnvVars:
416
## - name: FOO
417
## value: "bar"
418
##
419
extraEnvVars: []
420
## @param primary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for PostgreSQL Primary nodes
421
##
422
extraEnvVarsCM: ""
423
## @param primary.extraEnvVarsSecret Name of existing Secret containing extra env vars for PostgreSQL Primary nodes
424
##
425
extraEnvVarsSecret: ""
426
## @param primary.command Override default container command (useful when using custom images)
427
##
428
command: []
429
## @param primary.args Override default container args (useful when using custom images)
430
##
431
args: []
432
## Configure extra options for PostgreSQL Primary containers' liveness, readiness and startup probes
433
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
434
## @param primary.livenessProbe.enabled Enable livenessProbe on PostgreSQL Primary containers
435
## @param primary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
436
## @param primary.livenessProbe.periodSeconds Period seconds for livenessProbe
437
## @param primary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
438
## @param primary.livenessProbe.failureThreshold Failure threshold for livenessProbe
439
## @param primary.livenessProbe.successThreshold Success threshold for livenessProbe
440
##
441
livenessProbe:
442
enabled: true
443
initialDelaySeconds: 30
444
periodSeconds: 10
445
timeoutSeconds: 5
446
failureThreshold: 6
447
successThreshold: 1
448
## @param primary.readinessProbe.enabled Enable readinessProbe on PostgreSQL Primary containers
449
## @param primary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
450
## @param primary.readinessProbe.periodSeconds Period seconds for readinessProbe
451
## @param primary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
452
## @param primary.readinessProbe.failureThreshold Failure threshold for readinessProbe
453
## @param primary.readinessProbe.successThreshold Success threshold for readinessProbe
454
##
455
readinessProbe:
456
enabled: true
457
initialDelaySeconds: 5
458
periodSeconds: 10
459
timeoutSeconds: 5
460
failureThreshold: 6
461
successThreshold: 1
462
## @param primary.startupProbe.enabled Enable startupProbe on PostgreSQL Primary containers
463
## @param primary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
464
## @param primary.startupProbe.periodSeconds Period seconds for startupProbe
465
## @param primary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
466
## @param primary.startupProbe.failureThreshold Failure threshold for startupProbe
467
## @param primary.startupProbe.successThreshold Success threshold for startupProbe
468
##
469
startupProbe:
470
enabled: false
471
initialDelaySeconds: 30
472
periodSeconds: 10
473
timeoutSeconds: 1
474
failureThreshold: 15
475
successThreshold: 1
476
## @param primary.customLivenessProbe Custom livenessProbe that overrides the default one
477
##
478
customLivenessProbe: {}
479
## @param primary.customReadinessProbe Custom readinessProbe that overrides the default one
480
##
481
customReadinessProbe: {}
482
## @param primary.customStartupProbe Custom startupProbe that overrides the default one
483
##
484
customStartupProbe: {}
485
## @param primary.lifecycleHooks for the PostgreSQL Primary container to automate configuration before or after startup
486
##
487
lifecycleHooks: {}
488
## PostgreSQL Primary resource requests and limits
489
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
490
## @param primary.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if primary.resources is set (primary.resources is recommended for production).
491
##
492
resourcesPreset: "nano"
493
## @param primary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
494
## Example:
495
## resources:
496
## requests:
497
## cpu: 2
498
## memory: 512Mi
499
## limits:
500
## cpu: 3
501
## memory: 1024Mi
502
##
503
resources: {}
504
## Pod Security Context
505
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
506
## @param primary.podSecurityContext.enabled Enable security context
507
## @param primary.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
508
## @param primary.podSecurityContext.sysctls Set kernel settings using the sysctl interface
509
## @param primary.podSecurityContext.supplementalGroups Set filesystem extra groups
510
## @param primary.podSecurityContext.fsGroup Group ID for the pod
511
##
512
podSecurityContext:
513
enabled: true
514
fsGroupChangePolicy: Always
515
sysctls: []
516
supplementalGroups: []
517
fsGroup: 1001
518
## Container Security Context
519
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
520
## @param primary.containerSecurityContext.enabled Enabled containers' Security Context
521
## @param primary.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
522
## @param primary.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
523
## @param primary.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
524
## @param primary.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
525
## @param primary.containerSecurityContext.privileged Set container's Security Context privileged
526
## @param primary.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
527
## @param primary.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
528
## @param primary.containerSecurityContext.capabilities.drop List of capabilities to be dropped
529
## @param primary.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
530
##
531
containerSecurityContext:
532
enabled: true
533
seLinuxOptions: {}
534
runAsUser: 1001
535
runAsGroup: 1001
536
runAsNonRoot: true
537
privileged: false
538
readOnlyRootFilesystem: true
539
allowPrivilegeEscalation: false
540
capabilities:
541
drop: ["ALL"]
542
seccompProfile:
543
type: "RuntimeDefault"
544
## @param primary.automountServiceAccountToken Mount Service Account token in pod
545
##
546
automountServiceAccountToken: false
547
## @param primary.hostAliases PostgreSQL primary pods host aliases
548
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
549
##
550
hostAliases: []
551
## @param primary.hostNetwork Specify if host network should be enabled for PostgreSQL pod (postgresql primary)
552
##
553
hostNetwork: false
554
## @param primary.hostIPC Specify if host IPC should be enabled for PostgreSQL pod (postgresql primary)
555
##
556
hostIPC: false
557
## @param primary.labels Map of labels to add to the statefulset (postgresql primary)
558
##
559
labels: {}
560
## @param primary.annotations Annotations for PostgreSQL primary pods
561
##
562
annotations: {}
563
## @param primary.podLabels Map of labels to add to the pods (postgresql primary)
564
##
565
podLabels: {}
566
## @param primary.podAnnotations Map of annotations to add to the pods (postgresql primary)
567
##
568
podAnnotations: {}
569
## @param primary.podAffinityPreset PostgreSQL primary pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
570
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
571
##
572
podAffinityPreset: ""
573
## @param primary.podAntiAffinityPreset PostgreSQL primary pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
574
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
575
##
576
podAntiAffinityPreset: soft
577
## PostgreSQL Primary node affinity preset
578
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
579
##
580
nodeAffinityPreset:
581
## @param primary.nodeAffinityPreset.type PostgreSQL primary node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
582
##
583
type: ""
584
## @param primary.nodeAffinityPreset.key PostgreSQL primary node label key to match Ignored if `primary.affinity` is set.
585
## E.g.
586
## key: "kubernetes.io/e2e-az-name"
587
##
588
key: ""
589
## @param primary.nodeAffinityPreset.values PostgreSQL primary node label values to match. Ignored if `primary.affinity` is set.
590
## E.g.
591
## values:
592
## - e2e-az1
593
## - e2e-az2
594
##
595
values: []
596
## @param primary.affinity Affinity for PostgreSQL primary pods assignment
597
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
598
## Note: primary.podAffinityPreset, primary.podAntiAffinityPreset, and primary.nodeAffinityPreset will be ignored when it's set
599
##
600
affinity: {}
601
## @param primary.nodeSelector Node labels for PostgreSQL primary pods assignment
602
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
603
##
604
nodeSelector: {}
605
## @param primary.tolerations Tolerations for PostgreSQL primary pods assignment
606
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
607
##
608
tolerations: []
609
## @param primary.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
610
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
611
##
612
topologySpreadConstraints: []
613
## @param primary.priorityClassName Priority Class to use for each pod (postgresql primary)
614
##
615
priorityClassName: ""
616
## @param primary.schedulerName Use an alternate scheduler, e.g. "stork".
617
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
618
##
619
schedulerName: ""
620
## @param primary.terminationGracePeriodSeconds Seconds PostgreSQL primary pod needs to terminate gracefully
621
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
622
##
623
terminationGracePeriodSeconds: ""
624
## @param primary.updateStrategy.type PostgreSQL Primary statefulset strategy type
625
## @param primary.updateStrategy.rollingUpdate PostgreSQL Primary statefulset rolling update configuration parameters
626
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
627
##
628
updateStrategy:
629
type: RollingUpdate
630
rollingUpdate: {}
631
## @param primary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the PostgreSQL Primary container(s)
632
##
633
extraVolumeMounts: []
634
## @param primary.extraVolumes Optionally specify extra list of additional volumes for the PostgreSQL Primary pod(s)
635
##
636
extraVolumes: []
637
## @param primary.sidecars Add additional sidecar containers to the PostgreSQL Primary pod(s)
638
## For example:
639
## sidecars:
640
## - name: your-image-name
641
## image: your-image
642
## imagePullPolicy: Always
643
## ports:
644
## - name: portname
645
## containerPort: 1234
646
##
647
sidecars: []
648
## @param primary.initContainers Add additional init containers to the PostgreSQL Primary pod(s)
649
## Example
650
##
651
## initContainers:
652
## - name: do-something
653
## image: busybox
654
## command: ['do', 'something']
655
##
656
initContainers: []
657
## Pod Disruption Budget configuration
658
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
659
## @param primary.pdb.create Enable/disable a Pod Disruption Budget creation
660
## @param primary.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
661
## @param primary.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `primary.pdb.minAvailable` and `primary.pdb.maxUnavailable` are empty.
662
##
663
pdb:
664
create: true
665
minAvailable: ""
666
maxUnavailable: ""
667
## @param primary.extraPodSpec Optionally specify extra PodSpec for the PostgreSQL Primary pod(s)
668
##
669
extraPodSpec: {}
670
## Network Policies
671
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
672
##
673
networkPolicy:
674
## @param primary.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
675
##
676
enabled: true
677
## @param primary.networkPolicy.allowExternal Don't require server label for connections
678
## The Policy model to apply. When set to false, only pods with the correct
679
## server label will have network access to the ports server is listening
680
## on. When true, server will accept connections from any source
681
## (with the correct destination port).
682
##
683
allowExternal: true
684
## @param primary.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
685
##
686
allowExternalEgress: true
687
## @param primary.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
688
## e.g:
689
## extraIngress:
690
## - ports:
691
## - port: 1234
692
## from:
693
## - podSelector:
694
## - matchLabels:
695
## - role: frontend
696
## - podSelector:
697
## - matchExpressions:
698
## - key: role
699
## operator: In
700
## values:
701
## - frontend
702
extraIngress: []
703
## @param primary.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
704
## e.g:
705
## extraEgress:
706
## - ports:
707
## - port: 1234
708
## to:
709
## - podSelector:
710
## - matchLabels:
711
## - role: frontend
712
## - podSelector:
713
## - matchExpressions:
714
## - key: role
715
## operator: In
716
## values:
717
## - frontend
718
##
719
extraEgress: []
720
## @param primary.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
721
## @param primary.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
722
##
723
ingressNSMatchLabels: {}
724
ingressNSPodMatchLabels: {}
725
## PostgreSQL Primary service configuration
726
##
727
service:
728
## @param primary.service.enabled Enable/disable the PostgreSQL primary service
729
##
730
enabled: true
731
## @param primary.service.type Kubernetes Service type
732
##
733
type: ClusterIP
734
## @param primary.service.ports.postgresql PostgreSQL service port
735
##
736
ports:
737
postgresql: 5432
738
## Node ports to expose
739
## NOTE: choose port between <30000-32767>
740
## @param primary.service.nodePorts.postgresql Node port for PostgreSQL
741
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
742
##
743
nodePorts:
744
postgresql: ""
745
## @param primary.service.clusterIP Static clusterIP or None for headless services
746
## e.g:
747
## clusterIP: None
748
##
749
clusterIP: ""
750
## @param primary.service.labels Map of labels to add to the primary service
751
##
752
labels: {}
753
## @param primary.service.annotations Annotations for PostgreSQL primary service
754
##
755
annotations: {}
756
## @param primary.service.loadBalancerClass Load balancer class if service type is `LoadBalancer`
757
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
758
##
759
loadBalancerClass: ""
760
## @param primary.service.loadBalancerIP Load balancer IP if service type is `LoadBalancer`
761
## Set the LoadBalancer service type to internal only
762
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
763
##
764
loadBalancerIP: ""
765
## @param primary.service.externalTrafficPolicy Enable client source IP preservation
766
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
767
##
768
externalTrafficPolicy: Cluster
769
## @param primary.service.loadBalancerSourceRanges Addresses that are allowed when service is LoadBalancer
770
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
771
##
772
## loadBalancerSourceRanges:
773
## - 10.10.10.0/24
774
##
775
loadBalancerSourceRanges: []
776
## @param primary.service.extraPorts Extra ports to expose in the PostgreSQL primary service
777
##
778
extraPorts: []
779
## @param primary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
780
## If "ClientIP", consecutive client requests will be directed to the same Pod
781
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
782
##
783
sessionAffinity: None
784
## @param primary.service.sessionAffinityConfig Additional settings for the sessionAffinity
785
## sessionAffinityConfig:
786
## clientIP:
787
## timeoutSeconds: 300
788
##
789
sessionAffinityConfig: {}
790
## Headless service properties
791
##
792
headless:
793
## @param primary.service.headless.annotations Additional custom annotations for headless PostgreSQL primary service
794
##
795
annotations: {}
796
## PostgreSQL Primary persistence configuration
797
##
798
persistence:
799
## @param primary.persistence.enabled Enable PostgreSQL Primary data persistence using PVC
800
##
801
enabled: true
802
## @param primary.persistence.volumeName Name to assign the volume
803
##
804
volumeName: "data"
805
## @param primary.persistence.existingClaim Name of an existing PVC to use
806
##
807
existingClaim: ""
808
## @param primary.persistence.mountPath The path the volume will be mounted at
809
## Note: useful when using custom PostgreSQL images
810
##
811
mountPath: /iamguarded/postgresql
812
## @param primary.persistence.subPath The subdirectory of the volume to mount to
813
## Useful in dev environments and one PV for multiple services
814
##
815
subPath: ""
816
## @param primary.persistence.storageClass PVC Storage Class for PostgreSQL Primary data volume
817
## If defined, storageClassName: <storageClass>
818
## If set to "-", storageClassName: "", which disables dynamic provisioning
819
## If undefined (the default) or set to null, no storageClassName spec is
820
## set, choosing the default provisioner. (gp2 on AWS, standard on
821
## GKE, AWS & OpenStack)
822
##
823
storageClass: ""
824
## @param primary.persistence.accessModes PVC Access Mode for PostgreSQL volume
825
##
826
accessModes:
827
- ReadWriteOnce
828
## @param primary.persistence.size PVC Storage Request for PostgreSQL volume
829
##
830
size: 8Gi
831
## @param primary.persistence.annotations Annotations for the PVC
832
##
833
annotations: {}
834
## @param primary.persistence.labels Labels for the PVC
835
##
836
labels: {}
837
## @param primary.persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template)
838
## selector:
839
## matchLabels:
840
## app: my-app
841
##
842
selector: {}
843
## @param primary.persistence.dataSource Custom PVC data source
844
##
845
dataSource: {}
846
## PostgreSQL Primary Persistent Volume Claim Retention Policy
847
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
848
##
849
persistentVolumeClaimRetentionPolicy:
850
## @param primary.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for Primary Statefulset
851
##
852
enabled: false
853
## @param primary.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
854
##
855
whenScaled: Retain
856
## @param primary.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
857
##
858
whenDeleted: Retain
859
## @section PostgreSQL read only replica parameters (only used when `architecture` is set to `replication`)
860
##
861
readReplicas:
862
## @param readReplicas.name Name of the read replicas database (eg secondary, slave, ...)
863
##
864
name: read
865
## @param readReplicas.replicaCount Number of PostgreSQL read only replicas
866
##
867
replicaCount: 1
868
## @param readReplicas.extendedConfiguration Extended PostgreSQL read only replicas configuration (appended to main or default configuration)
869
##
870
extendedConfiguration: ""
871
## @param readReplicas.extraEnvVars Array with extra environment variables to add to PostgreSQL read only nodes
872
## e.g:
873
## extraEnvVars:
874
## - name: FOO
875
## value: "bar"
876
##
877
extraEnvVars: []
878
## @param readReplicas.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for PostgreSQL read only nodes
879
##
880
extraEnvVarsCM: ""
881
## @param readReplicas.extraEnvVarsSecret Name of existing Secret containing extra env vars for PostgreSQL read only nodes
882
##
883
extraEnvVarsSecret: ""
884
## @param readReplicas.command Override default container command (useful when using custom images)
885
##
886
command: []
887
## @param readReplicas.args Override default container args (useful when using custom images)
888
##
889
args: []
890
## Configure extra options for PostgreSQL read only containers' liveness, readiness and startup probes
891
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
892
## @param readReplicas.livenessProbe.enabled Enable livenessProbe on PostgreSQL read only containers
893
## @param readReplicas.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
894
## @param readReplicas.livenessProbe.periodSeconds Period seconds for livenessProbe
895
## @param readReplicas.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
896
## @param readReplicas.livenessProbe.failureThreshold Failure threshold for livenessProbe
897
## @param readReplicas.livenessProbe.successThreshold Success threshold for livenessProbe
898
##
899
livenessProbe:
900
enabled: true
901
initialDelaySeconds: 30
902
periodSeconds: 10
903
timeoutSeconds: 5
904
failureThreshold: 6
905
successThreshold: 1
906
## @param readReplicas.readinessProbe.enabled Enable readinessProbe on PostgreSQL read only containers
907
## @param readReplicas.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
908
## @param readReplicas.readinessProbe.periodSeconds Period seconds for readinessProbe
909
## @param readReplicas.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
910
## @param readReplicas.readinessProbe.failureThreshold Failure threshold for readinessProbe
911
## @param readReplicas.readinessProbe.successThreshold Success threshold for readinessProbe
912
##
913
readinessProbe:
914
enabled: true
915
initialDelaySeconds: 5
916
periodSeconds: 10
917
timeoutSeconds: 5
918
failureThreshold: 6
919
successThreshold: 1
920
## @param readReplicas.startupProbe.enabled Enable startupProbe on PostgreSQL read only containers
921
## @param readReplicas.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
922
## @param readReplicas.startupProbe.periodSeconds Period seconds for startupProbe
923
## @param readReplicas.startupProbe.timeoutSeconds Timeout seconds for startupProbe
924
## @param readReplicas.startupProbe.failureThreshold Failure threshold for startupProbe
925
## @param readReplicas.startupProbe.successThreshold Success threshold for startupProbe
926
##
927
startupProbe:
928
enabled: false
929
initialDelaySeconds: 30
930
periodSeconds: 10
931
timeoutSeconds: 1
932
failureThreshold: 15
933
successThreshold: 1
934
## @param readReplicas.customLivenessProbe Custom livenessProbe that overrides the default one
935
##
936
customLivenessProbe: {}
937
## @param readReplicas.customReadinessProbe Custom readinessProbe that overrides the default one
938
##
939
customReadinessProbe: {}
940
## @param readReplicas.customStartupProbe Custom startupProbe that overrides the default one
941
##
942
customStartupProbe: {}
943
## @param readReplicas.lifecycleHooks for the PostgreSQL read only container to automate configuration before or after startup
944
##
945
lifecycleHooks: {}
946
## PostgreSQL read only resource requests and limits
947
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
948
## @param readReplicas.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if readReplicas.resources is set (readReplicas.resources is recommended for production).
949
##
950
resourcesPreset: "nano"
951
## @param readReplicas.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
952
## Example:
953
## resources:
954
## requests:
955
## cpu: 2
956
## memory: 512Mi
957
## limits:
958
## cpu: 3
959
## memory: 1024Mi
960
##
961
resources: {}
962
## Pod Security Context
963
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
964
## @param readReplicas.podSecurityContext.enabled Enable security context
965
## @param readReplicas.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
966
## @param readReplicas.podSecurityContext.sysctls Set kernel settings using the sysctl interface
967
## @param readReplicas.podSecurityContext.supplementalGroups Set filesystem extra groups
968
## @param readReplicas.podSecurityContext.fsGroup Group ID for the pod
969
##
970
podSecurityContext:
971
enabled: true
972
fsGroupChangePolicy: Always
973
sysctls: []
974
supplementalGroups: []
975
fsGroup: 1001
976
## Container Security Context
977
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
978
## @param readReplicas.containerSecurityContext.enabled Enabled containers' Security Context
979
## @param readReplicas.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
980
## @param readReplicas.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
981
## @param readReplicas.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
982
## @param readReplicas.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
983
## @param readReplicas.containerSecurityContext.privileged Set container's Security Context privileged
984
## @param readReplicas.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
985
## @param readReplicas.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
986
## @param readReplicas.containerSecurityContext.capabilities.drop List of capabilities to be dropped
987
## @param readReplicas.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
988
##
989
containerSecurityContext:
990
enabled: true
991
seLinuxOptions: {}
992
runAsUser: 1001
993
runAsGroup: 1001
994
runAsNonRoot: true
995
privileged: false
996
readOnlyRootFilesystem: true
997
allowPrivilegeEscalation: false
998
capabilities:
999
drop: ["ALL"]
1000
seccompProfile:
1001
type: "RuntimeDefault"
1002
## @param readReplicas.automountServiceAccountToken Mount Service Account token in pod
1003
##
1004
automountServiceAccountToken: false
1005
## @param readReplicas.hostAliases PostgreSQL read only pods host aliases
1006
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1007
##
1008
hostAliases: []
1009
## @param readReplicas.hostNetwork Specify if host network should be enabled for PostgreSQL pod (PostgreSQL read only)
1010
##
1011
hostNetwork: false
1012
## @param readReplicas.hostIPC Specify if host IPC should be enabled for PostgreSQL pod (postgresql primary)
1013
##
1014
hostIPC: false
1015
## @param readReplicas.labels Map of labels to add to the statefulset (PostgreSQL read only)
1016
##
1017
labels: {}
1018
## @param readReplicas.annotations Annotations for PostgreSQL read only pods
1019
##
1020
annotations: {}
1021
## @param readReplicas.podLabels Map of labels to add to the pods (PostgreSQL read only)
1022
##
1023
podLabels: {}
1024
## @param readReplicas.podAnnotations Map of annotations to add to the pods (PostgreSQL read only)
1025
##
1026
podAnnotations: {}
1027
## @param readReplicas.podAffinityPreset PostgreSQL read only pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
1028
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1029
##
1030
podAffinityPreset: ""
1031
## @param readReplicas.podAntiAffinityPreset PostgreSQL read only pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
1032
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1033
##
1034
podAntiAffinityPreset: soft
1035
## PostgreSQL read only node affinity preset
1036
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1037
##
1038
nodeAffinityPreset:
1039
## @param readReplicas.nodeAffinityPreset.type PostgreSQL read only node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
1040
##
1041
type: ""
1042
## @param readReplicas.nodeAffinityPreset.key PostgreSQL read only node label key to match Ignored if `primary.affinity` is set.
1043
## E.g.
1044
## key: "kubernetes.io/e2e-az-name"
1045
##
1046
key: ""
1047
## @param readReplicas.nodeAffinityPreset.values PostgreSQL read only node label values to match. Ignored if `primary.affinity` is set.
1048
## E.g.
1049
## values:
1050
## - e2e-az1
1051
## - e2e-az2
1052
##
1053
values: []
1054
## @param readReplicas.affinity Affinity for PostgreSQL read only pods assignment
1055
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1056
## Note: primary.podAffinityPreset, primary.podAntiAffinityPreset, and primary.nodeAffinityPreset will be ignored when it's set
1057
##
1058
affinity: {}
1059
## @param readReplicas.nodeSelector Node labels for PostgreSQL read only pods assignment
1060
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1061
##
1062
nodeSelector: {}
1063
## @param readReplicas.tolerations Tolerations for PostgreSQL read only pods assignment
1064
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1065
##
1066
tolerations: []
1067
## @param readReplicas.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1068
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1069
##
1070
topologySpreadConstraints: []
1071
## @param readReplicas.priorityClassName Priority Class to use for each pod (PostgreSQL read only)
1072
##
1073
priorityClassName: ""
1074
## @param readReplicas.schedulerName Use an alternate scheduler, e.g. "stork".
1075
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1076
##
1077
schedulerName: ""
1078
## @param readReplicas.terminationGracePeriodSeconds Seconds PostgreSQL read only pod needs to terminate gracefully
1079
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1080
##
1081
terminationGracePeriodSeconds: ""
1082
## @param readReplicas.updateStrategy.type PostgreSQL read only statefulset strategy type
1083
## @param readReplicas.updateStrategy.rollingUpdate PostgreSQL read only statefulset rolling update configuration parameters
1084
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1085
##
1086
updateStrategy:
1087
type: RollingUpdate
1088
rollingUpdate: {}
1089
## @param readReplicas.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the PostgreSQL read only container(s)
1090
##
1091
extraVolumeMounts: []
1092
## @param readReplicas.extraVolumes Optionally specify extra list of additional volumes for the PostgreSQL read only pod(s)
1093
##
1094
extraVolumes: []
1095
## @param readReplicas.sidecars Add additional sidecar containers to the PostgreSQL read only pod(s)
1096
## For example:
1097
## sidecars:
1098
## - name: your-image-name
1099
## image: your-image
1100
## imagePullPolicy: Always
1101
## ports:
1102
## - name: portname
1103
## containerPort: 1234
1104
##
1105
sidecars: []
1106
## @param readReplicas.initContainers Add additional init containers to the PostgreSQL read only pod(s)
1107
## Example
1108
##
1109
## initContainers:
1110
## - name: do-something
1111
## image: busybox
1112
## command: ['do', 'something']
1113
##
1114
initContainers: []
1115
## Pod Disruption Budget configuration
1116
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
1117
## @param readReplicas.pdb.create Enable/disable a Pod Disruption Budget creation
1118
## @param readReplicas.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
1119
## @param readReplicas.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `readReplicas.pdb.minAvailable` and `readReplicas.pdb.maxUnavailable` are empty.
1120
##
1121
pdb:
1122
create: true
1123
minAvailable: ""
1124
maxUnavailable: ""
1125
## @param readReplicas.extraPodSpec Optionally specify extra PodSpec for the PostgreSQL read only pod(s)
1126
##
1127
extraPodSpec: {}
1128
## Network Policies
1129
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1130
##
1131
networkPolicy:
1132
## @param readReplicas.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1133
##
1134
enabled: true
1135
## @param readReplicas.networkPolicy.allowExternal Don't require server label for connections
1136
## The Policy model to apply. When set to false, only pods with the correct
1137
## server label will have network access to the ports server is listening
1138
## on. When true, server will accept connections from any source
1139
## (with the correct destination port).
1140
##
1141
allowExternal: true
1142
## @param readReplicas.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1143
##
1144
allowExternalEgress: true
1145
## @param readReplicas.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1146
## e.g:
1147
## extraIngress:
1148
## - ports:
1149
## - port: 1234
1150
## from:
1151
## - podSelector:
1152
## - matchLabels:
1153
## - role: frontend
1154
## - podSelector:
1155
## - matchExpressions:
1156
## - key: role
1157
## operator: In
1158
## values:
1159
## - frontend
1160
extraIngress: []
1161
## @param readReplicas.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1162
## e.g:
1163
## extraEgress:
1164
## - ports:
1165
## - port: 1234
1166
## to:
1167
## - podSelector:
1168
## - matchLabels:
1169
## - role: frontend
1170
## - podSelector:
1171
## - matchExpressions:
1172
## - key: role
1173
## operator: In
1174
## values:
1175
## - frontend
1176
##
1177
extraEgress: []
1178
## @param readReplicas.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
1179
## @param readReplicas.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
1180
##
1181
ingressNSMatchLabels: {}
1182
ingressNSPodMatchLabels: {}
1183
## PostgreSQL read only service configuration
1184
##
1185
service:
1186
## @param readReplicas.service.type Kubernetes Service type
1187
##
1188
type: ClusterIP
1189
## @param readReplicas.service.ports.postgresql PostgreSQL service port
1190
##
1191
ports:
1192
postgresql: 5432
1193
## Node ports to expose
1194
## NOTE: choose port between <30000-32767>
1195
## @param readReplicas.service.nodePorts.postgresql Node port for PostgreSQL
1196
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1197
##
1198
nodePorts:
1199
postgresql: ""
1200
## @param readReplicas.service.clusterIP Static clusterIP or None for headless services
1201
## e.g:
1202
## clusterIP: None
1203
##
1204
clusterIP: ""
1205
## @param readReplicas.service.labels Map of labels to add to the read service
1206
##
1207
labels: {}
1208
## @param readReplicas.service.annotations Annotations for PostgreSQL read only service
1209
##
1210
annotations: {}
1211
## @param readReplicas.service.loadBalancerClass Load balancer class if service type is `LoadBalancer`
1212
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
1213
##
1214
loadBalancerClass: ""
1215
## @param readReplicas.service.loadBalancerIP Load balancer IP if service type is `LoadBalancer`
1216
## Set the LoadBalancer service type to internal only
1217
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1218
##
1219
loadBalancerIP: ""
1220
## @param readReplicas.service.externalTrafficPolicy Enable client source IP preservation
1221
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1222
##
1223
externalTrafficPolicy: Cluster
1224
## @param readReplicas.service.loadBalancerSourceRanges Addresses that are allowed when service is LoadBalancer
1225
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1226
##
1227
## loadBalancerSourceRanges:
1228
## - 10.10.10.0/24
1229
##
1230
loadBalancerSourceRanges: []
1231
## @param readReplicas.service.extraPorts Extra ports to expose in the PostgreSQL read only service
1232
##
1233
extraPorts: []
1234
## @param readReplicas.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1235
## If "ClientIP", consecutive client requests will be directed to the same Pod
1236
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1237
##
1238
sessionAffinity: None
1239
## @param readReplicas.service.sessionAffinityConfig Additional settings for the sessionAffinity
1240
## sessionAffinityConfig:
1241
## clientIP:
1242
## timeoutSeconds: 300
1243
##
1244
sessionAffinityConfig: {}
1245
## Headless service properties
1246
##
1247
headless:
1248
## @param readReplicas.service.headless.annotations Additional custom annotations for headless PostgreSQL read only service
1249
##
1250
annotations: {}
1251
## PostgreSQL read only persistence configuration
1252
##
1253
persistence:
1254
## @param readReplicas.persistence.enabled Enable PostgreSQL read only data persistence using PVC
1255
##
1256
enabled: true
1257
## @param readReplicas.persistence.existingClaim Name of an existing PVC to use
1258
##
1259
existingClaim: ""
1260
## @param readReplicas.persistence.mountPath The path the volume will be mounted at
1261
## Note: useful when using custom PostgreSQL images
1262
##
1263
mountPath: /iamguarded/postgresql
1264
## @param readReplicas.persistence.subPath The subdirectory of the volume to mount to
1265
## Useful in dev environments and one PV for multiple services
1266
##
1267
subPath: ""
1268
## @param readReplicas.persistence.storageClass PVC Storage Class for PostgreSQL read only data volume
1269
## If defined, storageClassName: <storageClass>
1270
## If set to "-", storageClassName: "", which disables dynamic provisioning
1271
## If undefined (the default) or set to null, no storageClassName spec is
1272
## set, choosing the default provisioner. (gp2 on AWS, standard on
1273
## GKE, AWS & OpenStack)
1274
##
1275
storageClass: ""
1276
## @param readReplicas.persistence.accessModes PVC Access Mode for PostgreSQL volume
1277
##
1278
accessModes:
1279
- ReadWriteOnce
1280
## @param readReplicas.persistence.size PVC Storage Request for PostgreSQL volume
1281
##
1282
size: 8Gi
1283
## @param readReplicas.persistence.annotations Annotations for the PVC
1284
##
1285
annotations: {}
1286
## @param readReplicas.persistence.labels Labels for the PVC
1287
##
1288
labels: {}
1289
## @param readReplicas.persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template)
1290
## selector:
1291
## matchLabels:
1292
## app: my-app
1293
##
1294
selector: {}
1295
## @param readReplicas.persistence.dataSource Custom PVC data source
1296
##
1297
dataSource: {}
1298
## PostgreSQL Read only Persistent Volume Claim Retention Policy
1299
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1300
##
1301
persistentVolumeClaimRetentionPolicy:
1302
## @param readReplicas.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for read only Statefulset
1303
##
1304
enabled: false
1305
## @param readReplicas.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1306
##
1307
whenScaled: Retain
1308
## @param readReplicas.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1309
##
1310
whenDeleted: Retain
1311
## @section Backup parameters
1312
## This section implements a trivial logical dump cronjob of the database.
1313
## This only comes with the consistency guarantees of the dump program.
1314
## This is not a snapshot based roll forward/backward recovery backup.
1315
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
1316
backup:
1317
## @param backup.enabled Enable the logical dump of the database "regularly"
1318
enabled: false
1319
cronjob:
1320
## @param backup.cronjob.schedule Set the cronjob parameter schedule
1321
schedule: "@daily"
1322
## @param backup.cronjob.timeZone Set the cronjob parameter timeZone
1323
timeZone: ""
1324
## @param backup.cronjob.concurrencyPolicy Set the cronjob parameter concurrencyPolicy
1325
concurrencyPolicy: Allow
1326
## @param backup.cronjob.failedJobsHistoryLimit Set the cronjob parameter failedJobsHistoryLimit
1327
failedJobsHistoryLimit: 1
1328
## @param backup.cronjob.successfulJobsHistoryLimit Set the cronjob parameter successfulJobsHistoryLimit
1329
successfulJobsHistoryLimit: 3
1330
## @param backup.cronjob.startingDeadlineSeconds Set the cronjob parameter startingDeadlineSeconds
1331
startingDeadlineSeconds: ""
1332
## @param backup.cronjob.ttlSecondsAfterFinished Set the cronjob parameter ttlSecondsAfterFinished
1333
ttlSecondsAfterFinished: ""
1334
## @param backup.cronjob.restartPolicy Set the cronjob parameter restartPolicy
1335
restartPolicy: OnFailure
1336
## @param backup.cronjob.podSecurityContext.enabled Enable PodSecurityContext for CronJob/Backup
1337
## @param backup.cronjob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1338
## @param backup.cronjob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1339
## @param backup.cronjob.podSecurityContext.supplementalGroups Set filesystem extra groups
1340
## @param backup.cronjob.podSecurityContext.fsGroup Group ID for the CronJob
1341
podSecurityContext:
1342
enabled: true
1343
fsGroupChangePolicy: Always
1344
sysctls: []
1345
supplementalGroups: []
1346
fsGroup: 1001
1347
## backup container's Security Context
1348
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1349
## @param backup.cronjob.containerSecurityContext.enabled Enabled containers' Security Context
1350
## @param backup.cronjob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1351
## @param backup.cronjob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1352
## @param backup.cronjob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1353
## @param backup.cronjob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1354
## @param backup.cronjob.containerSecurityContext.privileged Set container's Security Context privileged
1355
## @param backup.cronjob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1356
## @param backup.cronjob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1357
## @param backup.cronjob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1358
## @param backup.cronjob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1359
containerSecurityContext:
1360
enabled: true
1361
seLinuxOptions: {}
1362
runAsUser: 1001
1363
runAsGroup: 1001
1364
runAsNonRoot: true
1365
privileged: false
1366
readOnlyRootFilesystem: true
1367
allowPrivilegeEscalation: false
1368
capabilities:
1369
drop: ["ALL"]
1370
seccompProfile:
1371
type: "RuntimeDefault"
1372
## @param backup.cronjob.command Set backup container's command to run
1373
command:
1374
- /bin/bash
1375
- -c
1376
- PGPASSWORD="${PGPASSWORD:-$(< "$PGPASSWORD_FILE")}" pg_dumpall --clean --if-exists --load-via-partition-root --quote-all-identifiers --no-password --file="${PGDUMP_DIR}/pg_dumpall-$(date '+%Y-%m-%d-%H-%M').pgdump"
1377
## @param backup.cronjob.labels Set the cronjob labels
1378
labels: {}
1379
## @param backup.cronjob.annotations Set the cronjob annotations
1380
annotations: {}
1381
## @param backup.cronjob.nodeSelector Node labels for PostgreSQL backup CronJob pod assignment
1382
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes/
1383
##
1384
nodeSelector: {}
1385
## @param backup.cronjob.tolerations Tolerations for PostgreSQL backup CronJob pods assignment
1386
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1387
##
1388
tolerations: []
1389
## backup cronjob container resource requests and limits
1390
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1391
## @param backup.cronjob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if backup.cronjob.resources is set (backup.cronjob.resources is recommended for production).
1392
##
1393
resourcesPreset: "nano"
1394
## @param backup.cronjob.resources Set container requests and limits for different resources like CPU or memory
1395
## Example:
1396
resources: {}
1397
## resources:
1398
## requests:
1399
## cpu: 1
1400
## memory: 512Mi
1401
## limits:
1402
## cpu: 2
1403
## memory: 1024Mi
1404
networkPolicy:
1405
## @param backup.cronjob.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1406
##
1407
enabled: true
1408
storage:
1409
## @param backup.cronjob.storage.enabled Enable using a `PersistentVolumeClaim` as backup data volume
1410
##
1411
enabled: true
1412
## @param backup.cronjob.storage.existingClaim Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`)
1413
## If defined, PVC must be created manually before volume will be bound
1414
##
1415
existingClaim: ""
1416
## @param backup.cronjob.storage.resourcePolicy Setting it to "keep" to avoid removing PVCs during a helm delete operation. Leaving it empty will delete PVCs after the chart deleted
1417
##
1418
resourcePolicy: ""
1419
## @param backup.cronjob.storage.storageClass PVC Storage Class for the backup data volume
1420
## If defined, storageClassName: <storageClass>
1421
## If set to "-", storageClassName: "", which disables dynamic provisioning
1422
## If undefined (the default) or set to null, no storageClassName spec is
1423
## set, choosing the default provisioner.
1424
##
1425
storageClass: ""
1426
## @param backup.cronjob.storage.accessModes PV Access Mode
1427
##
1428
accessModes:
1429
- ReadWriteOnce
1430
## @param backup.cronjob.storage.size PVC Storage Request for the backup data volume
1431
##
1432
size: 8Gi
1433
## @param backup.cronjob.storage.annotations PVC annotations
1434
##
1435
annotations: {}
1436
## @param backup.cronjob.storage.mountPath Path to mount the volume at
1437
##
1438
mountPath: /backup/pgdump
1439
## @param backup.cronjob.storage.subPath Subdirectory of the volume to mount at
1440
## and one PV for multiple services.
1441
##
1442
subPath: ""
1443
## Fine tuning for volumeClaimTemplates
1444
##
1445
volumeClaimTemplates:
1446
## @param backup.cronjob.storage.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
1447
## A label query over volumes to consider for binding (e.g. when using local volumes)
1448
## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details
1449
##
1450
selector: {}
1451
## @param backup.cronjob.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the backup container
1452
##
1453
extraVolumeMounts: []
1454
## @param backup.cronjob.extraVolumes Optionally specify extra list of additional volumes for the backup container
1455
##
1456
extraVolumes: []
1457
## @section Password update job
1458
##
1459
passwordUpdateJob:
1460
## @param passwordUpdateJob.enabled Enable password update job
1461
##
1462
enabled: false
1463
## @param passwordUpdateJob.backoffLimit set backoff limit of the job
1464
##
1465
backoffLimit: 10
1466
## @param passwordUpdateJob.command Override default container command on mysql Primary container(s) (useful when using custom images)
1467
##
1468
command: []
1469
## @param passwordUpdateJob.args Override default container args on mysql Primary container(s) (useful when using custom images)
1470
##
1471
args: []
1472
## @param passwordUpdateJob.extraCommands Extra commands to pass to the generation job
1473
##
1474
extraCommands: ""
1475
## @param passwordUpdateJob.previousPasswords.postgresPassword Previous postgres password (set if the password secret was already changed)
1476
## @param passwordUpdateJob.previousPasswords.password Previous password (set if the password secret was already changed)
1477
## @param passwordUpdateJob.previousPasswords.replicationPassword Previous replication password (set if the password secret was already changed)
1478
## @param passwordUpdateJob.previousPasswords.existingSecret Name of a secret containing the previous passwords (set if the password secret was already changed)
1479
previousPasswords:
1480
postgresPassword: ""
1481
password: ""
1482
replicationPassword: ""
1483
existingSecret: ""
1484
## Configure Container Security Context
1485
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1486
## @param passwordUpdateJob.containerSecurityContext.enabled Enabled containers' Security Context
1487
## @param passwordUpdateJob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1488
## @param passwordUpdateJob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1489
## @param passwordUpdateJob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1490
## @param passwordUpdateJob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1491
## @param passwordUpdateJob.containerSecurityContext.privileged Set container's Security Context privileged
1492
## @param passwordUpdateJob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1493
## @param passwordUpdateJob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1494
## @param passwordUpdateJob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1495
## @param passwordUpdateJob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1496
##
1497
containerSecurityContext:
1498
enabled: true
1499
seLinuxOptions: {}
1500
runAsUser: 1001
1501
runAsGroup: 1001
1502
runAsNonRoot: true
1503
privileged: false
1504
readOnlyRootFilesystem: true
1505
allowPrivilegeEscalation: false
1506
capabilities:
1507
drop: ["ALL"]
1508
seccompProfile:
1509
type: "RuntimeDefault"
1510
## Configure Pods Security Context
1511
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1512
## @param passwordUpdateJob.podSecurityContext.enabled Enabled credential init job pods' Security Context
1513
## @param passwordUpdateJob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1514
## @param passwordUpdateJob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1515
## @param passwordUpdateJob.podSecurityContext.supplementalGroups Set filesystem extra groups
1516
## @param passwordUpdateJob.podSecurityContext.fsGroup Set credential init job pod's Security Context fsGroup
1517
##
1518
podSecurityContext:
1519
enabled: true
1520
fsGroupChangePolicy: Always
1521
sysctls: []
1522
supplementalGroups: []
1523
fsGroup: 1001
1524
## @param passwordUpdateJob.extraEnvVars Array containing extra env vars to configure the credential init job
1525
## For example:
1526
## extraEnvVars:
1527
## - name: GF_DEFAULT_INSTANCE_NAME
1528
## value: my-instance
1529
##
1530
extraEnvVars: []
1531
## @param passwordUpdateJob.extraEnvVarsCM ConfigMap containing extra env vars to configure the credential init job
1532
##
1533
extraEnvVarsCM: ""
1534
## @param passwordUpdateJob.extraEnvVarsSecret Secret containing extra env vars to configure the credential init job (in case of sensitive data)
1535
##
1536
extraEnvVarsSecret: ""
1537
## @param passwordUpdateJob.extraVolumes Optionally specify extra list of additional volumes for the credential init job
1538
##
1539
extraVolumes: []
1540
## @param passwordUpdateJob.extraVolumeMounts Array of extra volume mounts to be added to the jwt Container (evaluated as template). Normally used with `extraVolumes`.
1541
##
1542
extraVolumeMounts: []
1543
## @param passwordUpdateJob.initContainers Add additional init containers for the mysql Primary pod(s)
1544
##
1545
initContainers: []
1546
## Container resource requests and limits
1547
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1548
## @param passwordUpdateJob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if passwordUpdateJob.resources is set (passwordUpdateJob.resources is recommended for production).
1549
##
1550
resourcesPreset: "micro"
1551
## @param passwordUpdateJob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1552
## Example:
1553
## resources:
1554
## requests:
1555
## cpu: 2
1556
## memory: 512Mi
1557
## limits:
1558
## cpu: 3
1559
## memory: 1024Mi
1560
##
1561
resources: {}
1562
## @param passwordUpdateJob.customLivenessProbe Custom livenessProbe that overrides the default one
1563
##
1564
customLivenessProbe: {}
1565
## @param passwordUpdateJob.customReadinessProbe Custom readinessProbe that overrides the default one
1566
##
1567
customReadinessProbe: {}
1568
## @param passwordUpdateJob.customStartupProbe Custom startupProbe that overrides the default one
1569
##
1570
customStartupProbe: {}
1571
## @param passwordUpdateJob.automountServiceAccountToken Mount Service Account token in pod
1572
##
1573
automountServiceAccountToken: false
1574
## @param passwordUpdateJob.hostAliases Add deployment host aliases
1575
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1576
##
1577
hostAliases: []
1578
## @param passwordUpdateJob.annotations [object] Add annotations to the job
1579
##
1580
annotations: {}
1581
## @param passwordUpdateJob.podLabels Additional pod labels
1582
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1583
##
1584
podLabels: {}
1585
## @param passwordUpdateJob.podAnnotations Additional pod annotations
1586
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1587
##
1588
podAnnotations: {}
1589
## @section Volume Permissions parameters
1590
##
1591
1592
## Init containers parameters:
1593
## volumePermissions: Change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each node
1594
##
1595
volumePermissions:
1596
## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume
1597
##
1598
enabled: false
1599
## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
1600
## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
1601
## @skip volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended)
1602
## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1603
## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
1604
## @param volumePermissions.image.pullSecrets Init container volume-permissions image pull secrets
1605
##
1606
image:
1607
registry: cgr.dev
1608
repository: chainguard-private/os-shell-iamguarded
1609
tag: 1.0.0
1610
digest: sha256:40960e7e0062af307b2944c9ebfdde9997b9bbd7965de7d9c88988b3d2d6d555
1611
pullPolicy: IfNotPresent
1612
## Optionally specify an array of imagePullSecrets.
1613
## Secrets must be manually created in the namespace.
1614
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1615
## Example:
1616
## pullSecrets:
1617
## - myRegistryKeySecretName
1618
##
1619
pullSecrets: []
1620
## Init container resource requests and limits
1621
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1622
## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
1623
##
1624
resourcesPreset: "nano"
1625
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1626
## Example:
1627
## resources:
1628
## requests:
1629
## cpu: 2
1630
## memory: 512Mi
1631
## limits:
1632
## cpu: 3
1633
## memory: 1024Mi
1634
##
1635
resources: {}
1636
## Init container' Security Context
1637
## Note: the chown of the data folder is done to containerSecurityContext.runAsUser
1638
## and not the below volumePermissions.containerSecurityContext.runAsUser
1639
## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1640
## @param volumePermissions.containerSecurityContext.runAsUser User ID for the init container
1641
## @param volumePermissions.containerSecurityContext.runAsGroup Group ID for the init container
1642
## @param volumePermissions.containerSecurityContext.runAsNonRoot runAsNonRoot for the init container
1643
## @param volumePermissions.containerSecurityContext.seccompProfile.type seccompProfile.type for the init container
1644
##
1645
containerSecurityContext:
1646
seLinuxOptions: {}
1647
runAsUser: 0
1648
runAsGroup: 0
1649
runAsNonRoot: false
1650
seccompProfile:
1651
type: RuntimeDefault
1652
## @section Other Parameters
1653
##
1654
1655
## @param serviceBindings.enabled Create secret for service binding (Experimental)
1656
## Ref: https://servicebinding.io/service-provider/
1657
##
1658
serviceBindings:
1659
enabled: false
1660
## Service account for PostgreSQL to use.
1661
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1662
##
1663
serviceAccount:
1664
## @param serviceAccount.create Enable creation of ServiceAccount for PostgreSQL pod
1665
##
1666
create: true
1667
## @param serviceAccount.name The name of the ServiceAccount to use.
1668
## If not set and create is true, a name is generated using the common.names.fullname template
1669
##
1670
name: ""
1671
## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
1672
## Can be set to false if pods using this serviceAccount do not need to use K8s API
1673
##
1674
automountServiceAccountToken: false
1675
## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
1676
##
1677
annotations: {}
1678
## Creates role for ServiceAccount
1679
## @param rbac.create Create Role and RoleBinding (required for PSP to work)
1680
##
1681
rbac:
1682
create: false
1683
## @param rbac.rules Custom RBAC rules to set
1684
## e.g:
1685
## rules:
1686
## - apiGroups:
1687
## - ""
1688
## resources:
1689
## - pods
1690
## verbs:
1691
## - get
1692
## - list
1693
##
1694
rules: []
1695
## Pod Security Policy
1696
## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
1697
## @param psp.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
1698
##
1699
psp:
1700
create: false
1701
## @section Metrics Parameters
1702
##
1703
metrics:
1704
## @param metrics.enabled Start a prometheus exporter
1705
##
1706
enabled: false
1707
## @param metrics.image.registry [default: REGISTRY_NAME] PostgreSQL Prometheus Exporter image registry
1708
## @param metrics.image.repository [default: REPOSITORY_NAME/postgres-exporter] PostgreSQL Prometheus Exporter image repository
1709
## @skip metrics.image.tag PostgreSQL Prometheus Exporter image tag (immutable tags are recommended)
1710
## @param metrics.image.digest PostgreSQL image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1711
## @param metrics.image.pullPolicy PostgreSQL Prometheus Exporter image pull policy
1712
## @param metrics.image.pullSecrets Specify image pull secrets
1713
##
1714
image:
1715
registry: cgr.dev
1716
repository: chainguard-private/prometheus-postgres-exporter-iamguarded
1717
tag: 0.21.1
1718
digest: sha256:4b4dbbbf1c62fe94f3b6b6f11ab0eec39254ffa3f1673600ffb7c7295e0034cb
1719
pullPolicy: IfNotPresent
1720
## Optionally specify an array of imagePullSecrets.
1721
## Secrets must be manually created in the namespace.
1722
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1723
## Example:
1724
## pullSecrets:
1725
## - myRegistryKeySecretName
1726
##
1727
pullSecrets: []
1728
## @param metrics.collectors Control enabled collectors
1729
## ref: https://github.com/prometheus-community/postgres_exporter#flags
1730
## Example:
1731
## collectors:
1732
## wal: false
1733
collectors: {}
1734
## @param metrics.customMetrics Define additional custom metrics
1735
## ref: https://github.com/prometheus-community/postgres_exporter#adding-new-metrics-via-a-config-file-deprecated
1736
## customMetrics:
1737
## pg_database:
1738
## query: "SELECT d.datname AS name, CASE WHEN pg_catalog.has_database_privilege(d.datname, 'CONNECT') THEN pg_catalog.pg_database_size(d.datname) ELSE 0 END AS size_bytes FROM pg_catalog.pg_database d where datname not in ('template0', 'template1', 'postgres')"
1739
## metrics:
1740
## - name:
1741
## usage: "LABEL"
1742
## description: "Name of the database"
1743
## - size_bytes:
1744
## usage: "GAUGE"
1745
## description: "Size of the database in bytes"
1746
##
1747
customMetrics: {}
1748
## @param metrics.extraEnvVars Extra environment variables to add to PostgreSQL Prometheus exporter
1749
## see: https://github.com/prometheus-community/postgres_exporter#environment-variables
1750
## For example:
1751
## extraEnvVars:
1752
## - name: PG_EXPORTER_DISABLE_DEFAULT_METRICS
1753
## value: "true"
1754
##
1755
extraEnvVars: []
1756
## PostgreSQL Prometheus exporter containers' Security Context
1757
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1758
## @param metrics.containerSecurityContext.enabled Enabled containers' Security Context
1759
## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1760
## @param metrics.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1761
## @param metrics.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1762
## @param metrics.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1763
## @param metrics.containerSecurityContext.privileged Set container's Security Context privileged
1764
## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1765
## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1766
## @param metrics.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1767
## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1768
##
1769
containerSecurityContext:
1770
enabled: true
1771
seLinuxOptions: {}
1772
runAsUser: 1001
1773
runAsGroup: 1001
1774
runAsNonRoot: true
1775
privileged: false
1776
readOnlyRootFilesystem: true
1777
allowPrivilegeEscalation: false
1778
capabilities:
1779
drop: ["ALL"]
1780
seccompProfile:
1781
type: "RuntimeDefault"
1782
## Configure extra options for PostgreSQL Prometheus exporter containers' liveness, readiness and startup probes
1783
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1784
## @param metrics.livenessProbe.enabled Enable livenessProbe on PostgreSQL Prometheus exporter containers
1785
## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1786
## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1787
## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1788
## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1789
## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1790
##
1791
livenessProbe:
1792
enabled: true
1793
initialDelaySeconds: 5
1794
periodSeconds: 10
1795
timeoutSeconds: 5
1796
failureThreshold: 6
1797
successThreshold: 1
1798
## @param metrics.readinessProbe.enabled Enable readinessProbe on PostgreSQL Prometheus exporter containers
1799
## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1800
## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1801
## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1802
## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1803
## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1804
##
1805
readinessProbe:
1806
enabled: true
1807
initialDelaySeconds: 5
1808
periodSeconds: 10
1809
timeoutSeconds: 5
1810
failureThreshold: 6
1811
successThreshold: 1
1812
## @param metrics.startupProbe.enabled Enable startupProbe on PostgreSQL Prometheus exporter containers
1813
## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1814
## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
1815
## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1816
## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
1817
## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
1818
##
1819
startupProbe:
1820
enabled: false
1821
initialDelaySeconds: 10
1822
periodSeconds: 10
1823
timeoutSeconds: 1
1824
failureThreshold: 15
1825
successThreshold: 1
1826
## @param metrics.customLivenessProbe Custom livenessProbe that overrides the default one
1827
##
1828
customLivenessProbe: {}
1829
## @param metrics.customReadinessProbe Custom readinessProbe that overrides the default one
1830
##
1831
customReadinessProbe: {}
1832
## @param metrics.customStartupProbe Custom startupProbe that overrides the default one
1833
##
1834
customStartupProbe: {}
1835
## @param metrics.containerPorts.metrics PostgreSQL Prometheus exporter metrics container port
1836
##
1837
containerPorts:
1838
metrics: 9187
1839
## PostgreSQL Prometheus exporter resource requests and limits
1840
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1841
## @param metrics.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.resources is set (metrics.resources is recommended for production).
1842
##
1843
resourcesPreset: "nano"
1844
## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1845
## Example:
1846
## resources:
1847
## requests:
1848
## cpu: 2
1849
## memory: 512Mi
1850
## limits:
1851
## cpu: 3
1852
## memory: 1024Mi
1853
##
1854
resources: {}
1855
## Service configuration
1856
##
1857
service:
1858
## @param metrics.service.ports.metrics PostgreSQL Prometheus Exporter service port
1859
##
1860
ports:
1861
metrics: 9187
1862
## @param metrics.service.clusterIP Static clusterIP or None for headless services
1863
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
1864
##
1865
clusterIP: ""
1866
## @param metrics.service.sessionAffinity Control where client requests go, to the same pod or round-robin
1867
## Values: ClientIP or None
1868
## ref: https://kubernetes.io/docs/concepts/services-networking/service/
1869
##
1870
sessionAffinity: None
1871
## @param metrics.service.annotations [object] Annotations for Prometheus to auto-discover the metrics endpoint
1872
##
1873
annotations:
1874
prometheus.io/scrape: "true"
1875
prometheus.io/port: "{{ .Values.metrics.service.ports.metrics }}"
1876
## Prometheus Operator ServiceMonitor configuration
1877
##
1878
serviceMonitor:
1879
## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using Prometheus Operator
1880
##
1881
enabled: false
1882
## @param metrics.serviceMonitor.namespace Namespace for the ServiceMonitor Resource (defaults to the Release Namespace)
1883
##
1884
namespace: ""
1885
## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
1886
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1887
##
1888
interval: ""
1889
## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
1890
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1891
##
1892
scrapeTimeout: ""
1893
## @param metrics.serviceMonitor.labels Additional labels that can be used so ServiceMonitor will be discovered by Prometheus
1894
##
1895
labels: {}
1896
## @param metrics.serviceMonitor.selector Prometheus instance selector labels
1897
##
1898
selector: {}
1899
## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
1900
##
1901
relabelings: []
1902
## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
1903
##
1904
metricRelabelings: []
1905
## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
1906
##
1907
honorLabels: false
1908
## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1909
##
1910
jobLabel: ""
1911
## Custom PrometheusRule to be defined
1912
## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
1913
## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
1914
##
1915
prometheusRule:
1916
## @param metrics.prometheusRule.enabled Create a PrometheusRule for Prometheus Operator
1917
##
1918
enabled: false
1919
## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
1920
##
1921
namespace: ""
1922
## @param metrics.prometheusRule.labels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
1923
##
1924
labels: {}
1925
## @param metrics.prometheusRule.rules PrometheusRule definitions
1926
## Make sure to constraint the rules to the current postgresql service.
1927
## rules:
1928
## - alert: HugeReplicationLag
1929
## expr: pg_replication_lag{service="{{ printf "%s-metrics" (include "postgresql.v1.chart.fullname" .) }}"} / 3600 > 1
1930
## for: 1m
1931
## labels:
1932
## severity: critical
1933
## annotations:
1934
## description: replication for {{ include "postgresql.v1.chart.fullname" . }} PostgreSQL is lagging by {{ "{{ $value }}" }} hour(s).
1935
## summary: PostgreSQL replication is lagging by {{ "{{ $value }}" }} hour(s).
1936
##
1937
rules: []
1938

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.