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