blob: 7aff189ba96622fb36e0019bf7da472bebcab97f [file] [log] [blame]
BorislavGb36d86c2018-04-01 18:59:54 +03001# 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#################################################################
18global:
19 nodePortPrefix: 302
BorislavGb36d86c2018-04-01 18:59:54 +030020 persistence: {}
21 readinessRepository: oomk8s
BorislavG3d6f9372018-04-15 11:55:39 +000022 readinessImage: readiness-check:2.0.0
BorislavGb36d86c2018-04-01 18:59:54 +030023
24#################################################################
Krzysztof Opasiakf1f945b2020-02-04 21:16:50 +010025# Secrets metaconfig
26#################################################################
27secrets:
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#################################################################
BorislavGb36d86c2018-04-01 18:59:54 +030043# Application configuration defaults.
44#################################################################
45
46# BusyBox image
47busyboxRepository: registry.hub.docker.com
48busyboxImage: library/busybox:latest
49
50postgresRepository: crunchydata
Sylvain Desbureauxa844ac72020-02-18 16:50:05 +010051image: crunchy-postgres:centos7-10.11-4.2.1
BorislavGb36d86c2018-04-01 18:59:54 +030052pullPolicy: Always
53
54# application configuration
55config:
56 pgUserName: testuser
57 pgDatabase: userdb
58 pgPrimaryPassword: password
59 pgUserPassword: password
60 pgRootPassword: password
61
62container:
63 name:
64 primary: pgset-primary
65 replica: pgset-replica
66
BorislavGb36d86c2018-04-01 18:59:54 +030067nodeSelector: {}
68
69affinity: {}
70
71# probe configuration parameters
72liveness:
BorislavG3f102012018-05-17 16:03:33 +000073 initialDelaySeconds: 300
BorislavGb36d86c2018-04-01 18:59:54 +030074 periodSeconds: 10
75 timeoutSeconds: 5
76 # necessary to disable liveness probe when setting breakpoints
77 # in debugger so K8s doesn't restart unresponsive container
78 enabled: true
79
80readiness:
BorislavG3f102012018-05-17 16:03:33 +000081 initialDelaySeconds: 10
BorislavGb36d86c2018-04-01 18:59:54 +030082 periodSeconds: 10
83
84## Persist data to a persitent volume
85persistence:
86 enabled: true
BorislavG3f102012018-05-17 16:03:33 +000087
BorislavGb36d86c2018-04-01 18:59:54 +030088 ## A manually managed Persistent Volume and Claim
89 ## Requires persistence.enabled: true
90 ## If defined, PVC must be created manually before volume will be bound
91 # existingClaim:
92 volumeReclaimPolicy: Retain
93
94 ## database data Persistent Volume Storage Class
95 ## If defined, storageClassName: <storageClass>
96 ## If set to "-", storageClassName: "", which disables dynamic provisioning
97 ## If undefined (the default) or set to null, no storageClassName spec is
98 ## set, choosing the default provisioner. (gp2 on AWS, standard on
99 ## GKE, AWS & OpenStack)
100 accessMode: ReadWriteOnce
101 size: 1Gi
102 mountPath: /dockerdata-nfs
103 mountSubPath: postgres/data
104 mountInitPath: postgres
105
106service:
107 type: ClusterIP
108 name: pgset
Sylvain Desbureaux0b243b62019-12-11 11:53:42 +0100109 portName: tcp-postgres
BorislavGb36d86c2018-04-01 18:59:54 +0300110 externalPort: 5432
111 internalPort: 5432
112 type2: ClusterIP
Sylvain Desbureaux0b243b62019-12-11 11:53:42 +0100113 name2: tcp-pgset-primary
114 portName2: tcp-postgres
BorislavGb36d86c2018-04-01 18:59:54 +0300115 externalPort2: 5432
116 internalPort2: 5432
117 type3: ClusterIP
Sylvain Desbureaux0b243b62019-12-11 11:53:42 +0100118 name3: tcp-pgset-replica
119 portName3: tcp-postgres
BorislavGb36d86c2018-04-01 18:59:54 +0300120 externalPort3: 5432
121 internalPort3: 5432
122
123ingress:
124 enabled: false
125
126resources: {}
127 # We usually recommend not to specify default resources and to leave this as a conscious
128 # choice for the user. This also increases chances charts run on environments with little
129 # resources, such as Minikube. If you do want to specify resources, uncomment the following
130 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
131 #
132 # Example:
133 # Configure resource requests and limits
134 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
135 # Minimum memory for development is 2 CPU cores and 4GB memory
136 # Minimum memory for production is 4 CPU cores and 8GB memory
137#resources:
138# limits:
139# cpu: 2
140# memory: 4Gi
141# requests:
142# cpu: 2
143# memory: 4Gi