[COMMON] Use common secret template in postgres
[oom.git] / kubernetes / common / postgres / values.yaml
1 # Copyright © 2018 Amdocs, AT&T, Bell Canada
2 #
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
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefix: 302
20   persistence: {}
21   readinessRepository: oomk8s
22   readinessImage: readiness-check:2.0.0
23
24 #################################################################
25 # Secrets metaconfig
26 #################################################################
27 secrets:
28   - uid: '{{ include "common.postgres.secret.rootPassUID" . }}'
29     type: password
30     externalSecret: '{{ tpl (default "" .Values.config.pgRootPasswordExternalSecret) . }}'
31     password: '{{ .Values.config.pgRootPassword }}'
32   - uid: '{{ include "common.postgres.secret.userCredentialsUID" . }}'
33     type: basicAuth
34     externalSecret: '{{ tpl (default "" .Values.config.pgUserExternalSecret) . }}'
35     login: '{{ .Values.config.pgUserName }}'
36     password: '{{ .Values.config.pgUserPassword }}'
37   - uid: '{{ include "common.postgres.secret.primaryPasswordUID" . }}'
38     type: password
39     externalSecret: '{{ tpl (default "" .Values.config.pgPrimaryPasswordExternalSecret) . }}'
40     password: '{{ .Values.config.pgPrimaryPassword }}'
41
42 #################################################################
43 # Application configuration defaults.
44 #################################################################
45
46 # BusyBox image
47 busyboxRepository: registry.hub.docker.com
48 busyboxImage: library/busybox:latest
49
50 postgresRepository: crunchydata
51 image: crunchy-postgres:centos7-10.4-2.0.0
52 pullPolicy: Always
53
54 # application configuration
55 config:
56   pgUserName: testuser
57   pgDatabase: userdb
58   pgPrimaryPassword: password
59   pgUserPassword: password
60   pgRootPassword: password
61
62 container:
63   name:
64     primary: pgset-primary
65     replica: pgset-replica
66
67 pgpool:
68   container:
69     port: 5432
70     name:
71       primary: pgset-primary
72       replica: pgset-replica
73   credentials:
74     pgusername: testuser
75     pgpassword: password
76   service:
77     name: pgpool
78
79
80 # default number of instances
81 replicaCount: 2
82
83 nodeSelector: {}
84
85 affinity: {}
86
87 # probe configuration parameters
88 liveness:
89   initialDelaySeconds: 300
90   periodSeconds: 10
91   timeoutSeconds: 5
92   # necessary to disable liveness probe when setting breakpoints
93   # in debugger so K8s doesn't restart unresponsive container
94   enabled: true
95
96 readiness:
97   initialDelaySeconds: 10
98   periodSeconds: 10
99
100 ## Persist data to a persitent volume
101 persistence:
102   enabled: true
103
104   ## A manually managed Persistent Volume and Claim
105   ## Requires persistence.enabled: true
106   ## If defined, PVC must be created manually before volume will be bound
107   # existingClaim:
108   volumeReclaimPolicy: Retain
109
110   ## database data Persistent Volume Storage Class
111   ## If defined, storageClassName: <storageClass>
112   ## If set to "-", storageClassName: "", which disables dynamic provisioning
113   ## If undefined (the default) or set to null, no storageClassName spec is
114   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
115   ##   GKE, AWS & OpenStack)
116   accessMode: ReadWriteOnce
117   size: 1Gi
118   mountPath: /dockerdata-nfs
119   mountSubPath: postgres/data
120   mountInitPath: postgres
121
122 service:
123   type: ClusterIP
124   name: pgset
125   portName: tcp-postgres
126   externalPort: 5432
127   internalPort: 5432
128   type2: ClusterIP
129   name2: tcp-pgset-primary
130   portName2: tcp-postgres
131   externalPort2: 5432
132   internalPort2: 5432
133   type3: ClusterIP
134   name3: tcp-pgset-replica
135   portName3: tcp-postgres
136   externalPort3: 5432
137   internalPort3: 5432
138
139 ingress:
140   enabled: false
141
142 resources: {}
143   # We usually recommend not to specify default resources and to leave this as a conscious
144   # choice for the user. This also increases chances charts run on environments with little
145   # resources, such as Minikube. If you do want to specify resources, uncomment the following
146   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
147   #
148   # Example:
149   # Configure resource requests and limits
150   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
151   # Minimum memory for development is 2 CPU cores and 4GB memory
152   # Minimum memory for production is 4 CPU cores and 8GB memory
153 #resources:
154 #  limits:
155 #    cpu: 2
156 #    memory: 4Gi
157 #  requests:
158 #    cpu: 2
159 #    memory: 4Gi