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: "on"
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: 1
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
83 ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-on-first-run
87 ## PostgreSQL password using existing secret
88 ## existingSecret: secret
90 ## Mount PostgreSQL secret as a file instead of passing environment variable
91 # usePasswordFile: false
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 ## PostgreSQL service configuration
139 ## PosgresSQL service type
143 ## Specify the nodePort value for the LoadBalancer and NodePort service types.
144 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
148 ## Provide any additional annotations which may be required. This can be used to
150 ## Set the LoadBalancer service type to internal only.
151 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
155 ## PostgreSQL data Persistent Volume Storage Class
156 ## If defined, storageClassName: <storageClass>
157 ## If set to "-", storageClassName: "", which disables dynamic provisioning
158 ## If undefined (the default) or set to null, no storageClassName spec is
159 ## set, choosing the default provisioner. (gp2 on AWS, standard on
160 ## GKE, AWS & OpenStack)
164 ## A manually managed Persistent Volume and Claim
165 ## If defined, PVC must be created manually before volume will be bound
167 mountPath: /bitnami/postgresql
174 ## updateStrategy for PostgreSQL StatefulSet and its slaves StatefulSets
175 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
180 ## PostgreSQL Master parameters
183 ## Node, affinity and tolerations labels for pod assignment
184 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
185 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
186 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature
192 ## PostgreSQL Slave parameters
195 ## Node, affinity and tolerations labels for pod assignment
196 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
197 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
198 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature
203 ## Configure resource requests and limits
204 ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
212 ## Enable creation of NetworkPolicy resources.
216 ## The Policy model to apply. When set to false, only pods with the correct
217 ## client label will have network access to the port PostgreSQL is listening
218 ## on. When true, PostgreSQL will accept connections from any source
219 ## (with the correct destination port).
223 ## Configure extra options for liveness and readiness probes
224 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
227 initialDelaySeconds: 30
235 initialDelaySeconds: 5
241 ## Configure metrics exporter
249 prometheus.io/scrape: "true"
250 prometheus.io/port: "9187"
254 repository: wrouesnel/postgres_exporter
256 pullPolicy: IfNotPresent
257 ## Optionally specify an array of imagePullSecrets.
258 ## Secrets must be manually created in the namespace.
259 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
262 # - myRegistrKeySecretName
264 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
265 ## Configure extra options for liveness and readiness probes
268 initialDelaySeconds: 5
276 initialDelaySeconds: 5
282 # Define custom environment variables to pass to the image here