Marc-Alexandre Choquette | 81a2df6 | 2018-07-14 13:04:33 -0400 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, 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 |
Alexis de Talhouët | 9a6e9b5 | 2018-09-18 10:32:39 -0400 | [diff] [blame] | 20 | nodePortPrefixExt: 304 |
Marc-Alexandre Choquette | 81a2df6 | 2018-07-14 13:04:33 -0400 | [diff] [blame] | 21 | persistence: {} |
| 22 | |
| 23 | # application image |
| 24 | repository: docker.io |
Alexis de Talhouët | 4ba6aaa | 2019-03-13 09:58:44 -0400 | [diff] [blame] | 25 | image: postgres:10.4-alpine |
Marc-Alexandre Choquette | 81a2df6 | 2018-07-14 13:04:33 -0400 | [diff] [blame] | 26 | pullPolicy: Always |
| 27 | |
| 28 | # application configuration |
| 29 | config: |
| 30 | postgresUser: netbox |
| 31 | postgresPassword: J5brHrAXFLQSif0K |
| 32 | postgresDB: netbox |
| 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 |
Marc-Alexandre Choquette | 81a2df6 | 2018-07-14 13:04:33 -0400 | [diff] [blame] | 59 | volumeReclaimPolicy: Retain |
Martin Ouimet | a7a1cfc | 2018-09-11 16:07:02 -0400 | [diff] [blame] | 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 |
Marc-Alexandre Choquette | 81a2df6 | 2018-07-14 13:04:33 -0400 | [diff] [blame] | 68 | size: 1Gi |
Alexis de Talhouët | 8f0d2e8 | 2018-08-17 13:57:47 -0400 | [diff] [blame] | 69 | |
Martin Ouimet | a7a1cfc | 2018-09-11 16:07:02 -0400 | [diff] [blame] | 70 | # When using storage class, mountPath and mountSubPath are |
| 71 | # simply ignored. |
| 72 | |
| 73 | mountPath: /dockerdata-nfs |
| 74 | mountSubPath: netbox/postgres/data |
| 75 | |
Marc-Alexandre Choquette | 81a2df6 | 2018-07-14 13:04:33 -0400 | [diff] [blame] | 76 | service: |
| 77 | type: ClusterIP |
| 78 | name: netbox-postgres |
| 79 | portName: netbox-postgres |
| 80 | internalPort: 5432 |
| 81 | externalPort: 5432 |
| 82 | |
| 83 | resources: {} |