Alexis de Talhouët | f83449d | 2019-05-09 16:49:30 -0400 | [diff] [blame] | 1 | # Copyright © 2019 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 | # Default values for mariadb. |
| 16 | # This is a YAML-formatted file. |
| 17 | # Declare variables to be passed into your templates. |
| 18 | |
| 19 | global: # global defaults |
| 20 | nodePortPrefixExt: 304 |
| 21 | persistence: {} |
| 22 | |
| 23 | # application image |
| 24 | repository: docker.io |
| 25 | image: postgres:10.4-alpine |
| 26 | pullPolicy: Always |
| 27 | |
| 28 | # application configuration |
| 29 | config: |
| 30 | postgresUser: awx |
| 31 | postgresPassword: awx |
| 32 | postgresDB: awx |
| 33 | |
| 34 | ingress: |
| 35 | enabled: false |
| 36 | |
| 37 | # default number of instances |
| 38 | replicaCount: 1 |
| 39 | |
| 40 | nodeSelector: {} |
| 41 | |
| 42 | affinity: {} |
| 43 | |
| 44 | # probe configuration parameters |
| 45 | liveness: |
| 46 | initialDelaySeconds: 10 |
| 47 | periodSeconds: 10 |
| 48 | # necessary to disable liveness probe when setting breakpoints |
| 49 | # in debugger so K8s doesn't restart unresponsive container |
| 50 | enabled: true |
| 51 | |
| 52 | readiness: |
| 53 | initialDelaySeconds: 10 |
| 54 | periodSeconds: 10 |
| 55 | |
| 56 | ## Persist data to a persitent volume |
| 57 | persistence: |
| 58 | enabled: true |
| 59 | volumeReclaimPolicy: Retain |
| 60 | |
| 61 | # Uncomment the storageClass parameter to use an existing PV |
| 62 | # that will match the following class. |
| 63 | # When uncomment the storageClass, the PV is not created anymore. |
| 64 | |
| 65 | # storageClass: "nfs-dev-sc" |
| 66 | |
Sylvain Desbureaux | 1868171 | 2019-10-28 14:55:33 +0100 | [diff] [blame] | 67 | accessMode: ReadWriteOnce |
Alexis de Talhouët | f83449d | 2019-05-09 16:49:30 -0400 | [diff] [blame] | 68 | size: 1Gi |
| 69 | |
| 70 | # When using storage class, mountPath and mountSubPath are |
| 71 | # simply ignored. |
| 72 | |
| 73 | mountPath: /dockerdata-nfs |
| 74 | mountSubPath: awx/pgdata |
| 75 | |
| 76 | service: |
| 77 | type: ClusterIP |
| 78 | name: awx-postgresql |
| 79 | portName: awx-postgresql |
| 80 | internalPort: 5432 |
| 81 | externalPort: 5432 |
| 82 | |
| 83 | resources: {} |