1 ## Global Docker image registry
2 ### Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value
7 ## Bitnami PostgreSQL image version
8 ## ref: https://hub.docker.com/r/bitnami/postgresql/tags/
12 repository: bitnami/postgresql
14 ## Specify a imagePullPolicy
15 ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
16 ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
20 ## Optionally specify an array of imagePullSecrets.
21 ## Secrets must be manually created in the namespace.
22 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
25 # - myRegistrKeySecretName
27 ## Set to true if you would like to see extra information on logs
28 ## It turns BASH and NAMI debugging in minideb
29 ## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging
33 ## Init containers parameters:
34 ## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup
40 repository: bitnami/minideb
42 ## Specify a imagePullPolicy
43 ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
44 ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
47 ## Init container Security Context
51 ## Pod Security Context
52 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
62 password: repl_password
64 ## Set synchronous commit mode: on, off, remote_apply, remote_write and local
65 ## ref: https://www.postgresql.org/docs/9.6/runtime-config-wal.html#GUC-WAL-LEVEL
66 synchronousCommit: "off"
67 ## From the number of `slaveReplicas` defined above, set the number of those that will have synchronous replication
68 ## NOTE: It cannot be > slaveReplicas
69 numSynchronousReplicas: 0
70 ## Replication Cluster application name. Useful for defining multiple replication policies
71 applicationName: my_application
73 ## PostgreSQL admin user
74 ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run
75 postgresqlUsername: postgres
77 ## PostgreSQL password
78 ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run
82 ## PostgreSQL password using existing secret
83 ## existingSecret: secret
85 ## Mount PostgreSQL secret as a file instead of passing environment variable
86 # usePasswordFile: false
89 ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-on-first-run
93 ## PostgreSQL configuration
94 ## Specify runtime configuration parameters as a dict, using camelCase, e.g.
95 ## {"sharedBuffers": "500MB"}
96 ## Alternatively, you can put your postgresql.conf under the files/ directory
97 ## ref: https://www.postgresql.org/docs/current/static/runtime-config.html
99 # postgresqlConfiguration:
101 ## PostgreSQL extended configuration
102 ## As above, but _appended_ to the main configuration
103 ## Alternatively, you can put your *.conf under the files/conf.d/ directory
104 ## https://github.com/bitnami/bitnami-docker-postgresql#allow-settings-to-be-loaded-from-files-other-than-the-default-postgresqlconf
106 # postgresqlExtendedConf:
108 ## PostgreSQL client authentication configuration
109 ## Specify content for pg_hba.conf
110 ## Default: do not create pg_hba.conf
111 ## Alternatively, you can put your pg_hba.conf under the files/ directory
112 # pgHbaConfiguration: |-
113 # local all all trust
114 # host all all localhost trust
115 # host mydatabase mysuser 192.168.0.0/24 md5
117 ## ConfigMap with PostgreSQL configuration
118 ## NOTE: This will override postgresqlConfiguration and pgHbaConfiguration
119 # configurationConfigMap:
121 ## ConfigMap with PostgreSQL extended configuration
122 # extendedConfConfigMap:
125 ## Specify dictionnary of scripts to be run at first boot
126 ## Alternatively, you can put your scripts under the files/docker-entrypoint-initdb.d directory
129 # my_init_script.sh:|
131 # echo "Do something."
133 ## ConfigMap with scripts to be run at first boot
134 ## NOTE: This will override initdbScripts
135 # initdbScriptsConfigMap:
137 ## Optional duration in seconds the pod needs to terminate gracefully.
138 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
140 # terminationGracePeriodSeconds: 30
142 ## PostgreSQL service configuration
144 ## PosgresSQL service type
149 ## Specify the nodePort value for the LoadBalancer and NodePort service types.
150 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
154 ## Provide any additional annotations which may be required. This can be used to
156 ## Set the LoadBalancer service type to internal only.
157 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
161 ## PostgreSQL data Persistent Volume Storage Class
162 ## If defined, storageClassName: <storageClass>
163 ## If set to "-", storageClassName: "", which disables dynamic provisioning
164 ## If undefined (the default) or set to null, no storageClassName spec is
165 ## set, choosing the default provisioner. (gp2 on AWS, standard on
166 ## GKE, AWS & OpenStack)
170 ## A manually managed Persistent Volume and Claim
171 ## If defined, PVC must be created manually before volume will be bound
173 mountPath: /bitnami/postgresql
180 ## updateStrategy for PostgreSQL StatefulSet and its slaves StatefulSets
181 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
186 ## PostgreSQL Master parameters
189 ## Node, affinity and tolerations labels for pod assignment
190 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
191 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
192 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature
198 ## PostgreSQL Slave parameters
201 ## Node, affinity and tolerations labels for pod assignment
202 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
203 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
204 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature
209 ## Configure resource requests and limits
210 ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
218 ## Enable creation of NetworkPolicy resources.
222 ## The Policy model to apply. When set to false, only pods with the correct
223 ## client label will have network access to the port PostgreSQL is listening
224 ## on. When true, PostgreSQL will accept connections from any source
225 ## (with the correct destination port).
229 ## Configure extra options for liveness and readiness probes
230 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
233 initialDelaySeconds: 30
241 initialDelaySeconds: 5
247 ## Configure metrics exporter
255 prometheus.io/scrape: "true"
256 prometheus.io/port: "9187"
260 repository: wrouesnel/postgres_exporter
262 pullPolicy: IfNotPresent
263 ## Optionally specify an array of imagePullSecrets.
264 ## Secrets must be manually created in the namespace.
265 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
268 # - myRegistrKeySecretName
270 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
271 ## Configure extra options for liveness and readiness probes
274 initialDelaySeconds: 5
282 initialDelaySeconds: 5
288 # Define custom environment variables to pass to the image here