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