Extend K8S and RIC installation instructions
[it/dep.git] / ric-infra / 30-Kong / helm / kong / charts / kong / charts / postgresql / values.yaml
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
3 ###
4 ## global:
5 ##   imageRegistry:
6
7 ## Bitnami PostgreSQL image version
8 ## ref: https://hub.docker.com/r/bitnami/postgresql/tags/
9 ##
10 image:
11   registry: docker.io
12   repository: bitnami/postgresql
13   tag: 10.6.0
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
17   ##
18   pullPolicy: Always
19
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/
23   ##
24   # pullSecrets:
25   #   - myRegistrKeySecretName
26
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
30   debug: false
31
32 ##
33 ## Init containers parameters:
34 ## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup
35 ##
36 volumePermissions:
37   enabled: true
38   image:
39     registry: docker.io
40     repository: bitnami/minideb
41     tag: latest
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
45     ##
46     pullPolicy: Always
47   ## Init container Security Context
48   securityContext:
49     runAsUser: 0
50
51 ## Pod Security Context
52 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
53 ##
54 securityContext:
55   enabled: true
56   fsGroup: 1001
57   runAsUser: 1001
58
59 replication:
60   enabled: false
61   user: repl_user
62   password: repl_password
63   slaveReplicas: 1
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
72
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
76
77 ## PostgreSQL password
78 ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run
79 ##
80 # postgresqlPassword:
81
82 ## PostgreSQL password using existing secret
83 ## existingSecret: secret
84
85 ## Mount PostgreSQL secret as a file instead of passing environment variable
86 # usePasswordFile: false
87
88 ## Create a database
89 ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-on-first-run
90 ##
91 # postgresqlDatabase:
92
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
98 ##
99 # postgresqlConfiguration:
100
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
105 ##
106 # postgresqlExtendedConf:
107
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
116
117 ## ConfigMap with PostgreSQL configuration
118 ## NOTE: This will override postgresqlConfiguration and pgHbaConfiguration
119 # configurationConfigMap:
120
121 ## ConfigMap with PostgreSQL extended configuration
122 # extendedConfConfigMap:
123
124 ## initdb scripts
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
127 ##
128 # initdbScripts:
129 #   my_init_script.sh:|
130 #      #!/bin/sh
131 #      echo "Do something."
132 #
133 ## ConfigMap with scripts to be run at first boot
134 ## NOTE: This will override initdbScripts
135 # initdbScriptsConfigMap:
136
137 ## Optional duration in seconds the pod needs to terminate gracefully.
138 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
139 ##
140 # terminationGracePeriodSeconds: 30
141
142 ## PostgreSQL service configuration
143 service:
144   ## PosgresSQL service type
145   type: ClusterIP
146   # clusterIP: None
147   port: 5432
148
149   ## Specify the nodePort value for the LoadBalancer and NodePort service types.
150   ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
151   ##
152   # nodePort:
153
154   ## Provide any additional annotations which may be required. This can be used to
155   annotations: {}
156   ## Set the LoadBalancer service type to internal only.
157   ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
158   ##
159   # loadBalancerIP:
160
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)
167 ##
168 persistence:
169   enabled: true
170   ## A manually managed Persistent Volume and Claim
171   ## If defined, PVC must be created manually before volume will be bound
172   # existingClaim:
173   mountPath: /bitnami/postgresql
174   # storageClass: "-"
175   accessModes:
176     - ReadWriteOnce
177   size: 8Gi
178   annotations: {}
179
180 ## updateStrategy for PostgreSQL StatefulSet and its slaves StatefulSets
181 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
182 updateStrategy:
183   type: RollingUpdate
184
185 ##
186 ## PostgreSQL Master parameters
187 ##
188 master:
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
193   nodeSelector: {}
194   affinity: {}
195   tolerations: []
196
197 ##
198 ## PostgreSQL Slave parameters
199 ##
200 slave:
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
205   nodeSelector: {}
206   affinity: {}
207   tolerations: []
208
209 ## Configure resource requests and limits
210 ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
211 ##
212 resources:
213   requests:
214     memory: 256Mi
215     cpu: 250m
216
217 networkPolicy:
218   ## Enable creation of NetworkPolicy resources.
219   ##
220   enabled: false
221
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).
226   ##
227   allowExternal: true
228
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)
231 livenessProbe:
232   enabled: true
233   initialDelaySeconds: 30
234   periodSeconds: 10
235   timeoutSeconds: 5
236   failureThreshold: 6
237   successThreshold: 1
238
239 readinessProbe:
240   enabled: true
241   initialDelaySeconds: 5
242   periodSeconds: 10
243   timeoutSeconds: 5
244   failureThreshold: 6
245   successThreshold: 1
246
247 ## Configure metrics exporter
248 ##
249 metrics:
250   enabled: false
251   # resources: {}
252   service:
253     type: ClusterIP
254     annotations:
255       prometheus.io/scrape: "true"
256       prometheus.io/port: "9187"
257     loadBalancerIP:
258   image:
259     registry: docker.io
260     repository: wrouesnel/postgres_exporter
261     tag: v0.4.6
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/
266     ##
267     # pullSecrets:
268     #   - myRegistrKeySecretName
269
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
272   livenessProbe:
273     enabled: true
274     initialDelaySeconds: 5
275     periodSeconds: 10
276     timeoutSeconds: 5
277     failureThreshold: 6
278     successThreshold: 1
279
280   readinessProbe:
281     enabled: true
282     initialDelaySeconds: 5
283     periodSeconds: 10
284     timeoutSeconds: 5
285     failureThreshold: 6
286     successThreshold: 1
287
288 # Define custom environment variables to pass to the image here
289 extraEnv: {}