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