1 # Copyright © 2018 Amdocs, AT&T, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
22 #################################################################
24 #################################################################
26 - uid: '{{ include "common.postgres.secret.rootPassUID" . }}'
28 externalSecret: '{{ tpl (default "" .Values.config.pgRootPasswordExternalSecret) . }}'
29 password: '{{ .Values.config.pgRootPassword }}'
30 - uid: '{{ include "common.postgres.secret.userCredentialsUID" . }}'
32 externalSecret: '{{ tpl (default "" .Values.config.pgUserExternalSecret) . }}'
33 login: '{{ .Values.config.pgUserName }}'
34 password: '{{ .Values.config.pgUserPassword }}'
35 - uid: '{{ include "common.postgres.secret.primaryPasswordUID" . }}'
37 externalSecret: '{{ tpl (default "" .Values.config.pgPrimaryPasswordExternalSecret) . }}'
38 password: '{{ .Values.config.pgPrimaryPassword }}'
40 #################################################################
41 # Application configuration defaults.
42 #################################################################
46 # application configuration
50 # pgPrimaryPassword: password
51 # pgUserPassword: password
52 # pgRootPassword: password
56 primary: pgset-primary
57 replica: pgset-replica
63 # probe configuration parameters
65 initialDelaySeconds: 300
68 # necessary to disable liveness probe when setting breakpoints
69 # in debugger so K8s doesn't restart unresponsive container
73 initialDelaySeconds: 10
76 ## Persist data to a persitent volume
80 ## A manually managed Persistent Volume and Claim
81 ## Requires persistence.enabled: true
82 ## If defined, PVC must be created manually before volume will be bound
84 volumeReclaimPolicy: Retain
86 ## database data Persistent Volume Storage Class
87 ## If defined, storageClassName: <storageClass>
88 ## If set to "-", storageClassName: "", which disables dynamic provisioning
89 ## If undefined (the default) or set to null, no storageClassName spec is
90 ## set, choosing the default provisioner. (gp2 on AWS, standard on
91 ## GKE, AWS & OpenStack)
92 accessMode: ReadWriteOnce
94 mountPath: /dockerdata-nfs
95 mountSubPath: postgres/data
96 mountInitPath: postgres
101 portName: tcp-postgres
105 name2: tcp-pgset-primary
106 portName2: tcp-postgres
110 name3: tcp-pgset-replica
111 portName3: tcp-postgres
121 # We usually recommend not to specify default resources and to leave this as a conscious
122 # choice for the user. This also increases chances charts run on environments with little
123 # resources, such as Minikube. If you do want to specify resources, uncomment the following
124 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
127 # Configure resource requests and limits
128 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
129 # Minimum memory for development is 2 CPU cores and 4GB memory
130 # Minimum memory for production is 4 CPU cores and 8GB memory