blob: f815847f065b7725f3c50e32a54ae6d052c8ab74 [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: {}
Krzysztof Opasiak17547342020-03-10 23:53:31 +010021
BorislavGb36d86c2018-04-01 18:59:54 +030022#################################################################
Krzysztof Opasiakf1f945b2020-02-04 21:16:50 +010023# Secrets metaconfig
24#################################################################
25secrets:
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#################################################################
BorislavGb36d86c2018-04-01 18:59:54 +030041# Application configuration defaults.
42#################################################################
43
BorislavGb36d86c2018-04-01 18:59:54 +030044pullPolicy: Always
45
46# application configuration
47config:
48 pgUserName: testuser
49 pgDatabase: userdb
Krzysztof Opasiakb51ee372020-05-15 01:24:10 +020050 # pgPrimaryPassword: password
51 # pgUserPassword: password
52 # pgRootPassword: password
BorislavGb36d86c2018-04-01 18:59:54 +030053
54container:
55 name:
56 primary: pgset-primary
57 replica: pgset-replica
58
BorislavGb36d86c2018-04-01 18:59:54 +030059nodeSelector: {}
60
61affinity: {}
62
63# probe configuration parameters
64liveness:
BorislavG3f102012018-05-17 16:03:33 +000065 initialDelaySeconds: 300
BorislavGb36d86c2018-04-01 18:59:54 +030066 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
72readiness:
BorislavG3f102012018-05-17 16:03:33 +000073 initialDelaySeconds: 10
BorislavGb36d86c2018-04-01 18:59:54 +030074 periodSeconds: 10
75
76## Persist data to a persitent volume
77persistence:
78 enabled: true
BorislavG3f102012018-05-17 16:03:33 +000079
BorislavGb36d86c2018-04-01 18:59:54 +030080 ## 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
98service:
99 type: ClusterIP
100 name: pgset
Sylvain Desbureaux0b243b62019-12-11 11:53:42 +0100101 portName: tcp-postgres
BorislavGb36d86c2018-04-01 18:59:54 +0300102 externalPort: 5432
103 internalPort: 5432
104 type2: ClusterIP
Sylvain Desbureaux0b243b62019-12-11 11:53:42 +0100105 name2: tcp-pgset-primary
106 portName2: tcp-postgres
BorislavGb36d86c2018-04-01 18:59:54 +0300107 externalPort2: 5432
108 internalPort2: 5432
109 type3: ClusterIP
Sylvain Desbureaux0b243b62019-12-11 11:53:42 +0100110 name3: tcp-pgset-replica
111 portName3: tcp-postgres
BorislavGb36d86c2018-04-01 18:59:54 +0300112 externalPort3: 5432
113 internalPort3: 5432
114
115ingress:
116 enabled: false
117
Sylvain Desbureaux335781f2020-09-23 10:31:50 +0200118flavor: 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
131resources:
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: {}