Merge "[DCAEMOD] Uses new tpls for repos / images"
[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
22 #################################################################
23 # Secrets metaconfig
24 #################################################################
25 secrets:
26   - uid: '{{ include "common.postgres.secret.rootPassUID" . }}'
27     type: password
28     externalSecret: '{{ tpl (default "" .Values.config.pgRootPasswordExternalSecret) . }}'
29     password: '{{ .Values.config.pgRootPassword }}'
30   - uid: '{{ include "common.postgres.secret.userCredentialsUID" . }}'
31     type: basicAuth
32     externalSecret: '{{ tpl (default "" .Values.config.pgUserExternalSecret) . }}'
33     login: '{{ .Values.config.pgUserName }}'
34     password: '{{ .Values.config.pgUserPassword }}'
35   - uid: '{{ include "common.postgres.secret.primaryPasswordUID" . }}'
36     type: password
37     externalSecret: '{{ tpl (default "" .Values.config.pgPrimaryPasswordExternalSecret) . }}'
38     password: '{{ .Values.config.pgPrimaryPassword }}'
39
40 #################################################################
41 # Application configuration defaults.
42 #################################################################
43
44 pullPolicy: Always
45
46 # application configuration
47 config:
48   pgUserName: testuser
49   pgDatabase: userdb
50   # pgPrimaryPassword: password
51   # pgUserPassword: password
52   # pgRootPassword: password
53
54 container:
55   name:
56     primary: pgset-primary
57     replica: pgset-replica
58
59 nodeSelector: {}
60
61 affinity: {}
62
63 # probe configuration parameters
64 liveness:
65   initialDelaySeconds: 300
66   periodSeconds: 10
67   timeoutSeconds: 5
68   # necessary to disable liveness probe when setting breakpoints
69   # in debugger so K8s doesn't restart unresponsive container
70   enabled: true
71
72 readiness:
73   initialDelaySeconds: 10
74   periodSeconds: 10
75
76 ## Persist data to a persitent volume
77 persistence:
78   enabled: true
79
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
83   # existingClaim:
84   volumeReclaimPolicy: Retain
85
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
93   size: 1Gi
94   mountPath: /dockerdata-nfs
95   mountSubPath: postgres/data
96   mountInitPath: postgres
97
98 service:
99   type: ClusterIP
100   name: pgset
101   portName: tcp-postgres
102   externalPort: 5432
103   internalPort: 5432
104   type2: ClusterIP
105   name2: tcp-pgset-primary
106   portName2: tcp-postgres
107   externalPort2: 5432
108   internalPort2: 5432
109   type3: ClusterIP
110   name3: tcp-pgset-replica
111   portName3: tcp-postgres
112   externalPort3: 5432
113   internalPort3: 5432
114
115 ingress:
116   enabled: false
117
118 flavor: small
119
120 #resources: {}
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:'.
125 #
126 # Example:
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
131 resources:
132   small:
133     limits:
134       cpu: 100m
135       memory: 300Mi
136     requests:
137       cpu: 10m
138       memory: 90Mi
139   large:
140     limits:
141       cpu: 2
142       memory: 4Gi
143     requests:
144       cpu: 1
145       memory: 2Gi
146   unlimited: {}