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