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 |
| 33 | image: crunchy-postgres:centos7-10.3-1.8.2 |
| 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 | |
| 49 | # default number of instances |
| 50 | replicaCount: 2 |
| 51 | |
| 52 | nodeSelector: {} |
| 53 | |
| 54 | affinity: {} |
| 55 | |
| 56 | # probe configuration parameters |
| 57 | liveness: |
BorislavG | 3f10201 | 2018-05-17 16:03:33 +0000 | [diff] [blame^] | 58 | initialDelaySeconds: 300 |
BorislavG | b36d86c | 2018-04-01 18:59:54 +0300 | [diff] [blame] | 59 | periodSeconds: 10 |
| 60 | timeoutSeconds: 5 |
| 61 | # necessary to disable liveness probe when setting breakpoints |
| 62 | # in debugger so K8s doesn't restart unresponsive container |
| 63 | enabled: true |
| 64 | |
| 65 | readiness: |
BorislavG | 3f10201 | 2018-05-17 16:03:33 +0000 | [diff] [blame^] | 66 | initialDelaySeconds: 10 |
BorislavG | b36d86c | 2018-04-01 18:59:54 +0300 | [diff] [blame] | 67 | periodSeconds: 10 |
| 68 | |
| 69 | ## Persist data to a persitent volume |
| 70 | persistence: |
| 71 | enabled: true |
BorislavG | 3f10201 | 2018-05-17 16:03:33 +0000 | [diff] [blame^] | 72 | |
BorislavG | b36d86c | 2018-04-01 18:59:54 +0300 | [diff] [blame] | 73 | ## A manually managed Persistent Volume and Claim |
| 74 | ## Requires persistence.enabled: true |
| 75 | ## If defined, PVC must be created manually before volume will be bound |
| 76 | # existingClaim: |
| 77 | volumeReclaimPolicy: Retain |
| 78 | |
| 79 | ## database data Persistent Volume Storage Class |
| 80 | ## If defined, storageClassName: <storageClass> |
| 81 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 82 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 83 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 84 | ## GKE, AWS & OpenStack) |
| 85 | accessMode: ReadWriteOnce |
| 86 | size: 1Gi |
| 87 | mountPath: /dockerdata-nfs |
| 88 | mountSubPath: postgres/data |
| 89 | mountInitPath: postgres |
| 90 | |
| 91 | service: |
| 92 | type: ClusterIP |
| 93 | name: pgset |
| 94 | externalPort: 5432 |
| 95 | internalPort: 5432 |
| 96 | type2: ClusterIP |
| 97 | name2: pgset-primary |
| 98 | externalPort2: 5432 |
| 99 | internalPort2: 5432 |
| 100 | type3: ClusterIP |
| 101 | name3: pgset-replica |
| 102 | externalPort3: 5432 |
| 103 | internalPort3: 5432 |
| 104 | |
| 105 | ingress: |
| 106 | enabled: false |
| 107 | |
| 108 | resources: {} |
| 109 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 110 | # choice for the user. This also increases chances charts run on environments with little |
| 111 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 112 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 113 | # |
| 114 | # Example: |
| 115 | # Configure resource requests and limits |
| 116 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 117 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 118 | # Minimum memory for production is 4 CPU cores and 8GB memory |
| 119 | #resources: |
| 120 | # limits: |
| 121 | # cpu: 2 |
| 122 | # memory: 4Gi |
| 123 | # requests: |
| 124 | # cpu: 2 |
| 125 | # memory: 4Gi |
| 126 | |