puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (c) 2021 Bell Canada. |
| 3 | # ================================================================================ |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # SPDX-License-Identifier: Apache-2.0 |
| 17 | # ============LICENSE_END========================================================= |
| 18 | |
| 19 | replicaCount: 1 |
| 20 | global: |
| 21 | persistence: {} |
| 22 | |
| 23 | ################################################################# |
| 24 | # Secrets. |
| 25 | ############################################################## |
| 26 | image: timescale/timescaledb:2.1.1-pg13 |
| 27 | |
| 28 | pullPolicy: Always |
| 29 | containerPorts: 5432 |
| 30 | |
| 31 | imagePullSecrets: [] |
| 32 | nameOverride: "" |
| 33 | fullnameOverride: "" |
| 34 | |
| 35 | serviceAccount: |
| 36 | nameOverride: timescaledb |
| 37 | roles: |
| 38 | - read |
| 39 | |
| 40 | podSecurityContext: {} |
| 41 | # fsGroup: 2000 |
| 42 | |
| 43 | securityContext: {} |
| 44 | # capabilities: |
| 45 | # drop: |
| 46 | # - ALL |
| 47 | # readOnlyRootFilesystem: true |
| 48 | # runAsNonRoot: true |
| 49 | # runAsUser: 1000 |
| 50 | |
| 51 | resources: |
| 52 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 53 | # choice for the user. This also increases chances charts run on environments with little |
| 54 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 55 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 56 | limits: |
| 57 | cpu: 0.5 |
| 58 | memory: 256Mi |
| 59 | requests: |
| 60 | cpu: 20m |
| 61 | memory: 256Mi |
| 62 | |
| 63 | nodeSelector: {} |
| 64 | |
| 65 | tolerations: [] |
| 66 | |
| 67 | affinity: {} |
| 68 | |
| 69 | service: |
| 70 | type: ClusterIP |
| 71 | name: timescaledb |
| 72 | ports: |
| 73 | - name: tcp-timescaledb |
| 74 | port: 5432 |
| 75 | |
| 76 | persistence: |
| 77 | enabled: true |
| 78 | |
| 79 | ## A manually managed Persistent Volume and Claim |
| 80 | ## Requires persistence.enabled: true |
| 81 | ## If defined, PVC must be created manually before volume will be bound |
| 82 | # existingClaim: |
| 83 | volumeReclaimPolicy: Retain |
| 84 | |
| 85 | ## database data Persistent Volume Storage Class |
| 86 | ## If defined, storageClassName: <storageClass> |
| 87 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 88 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 89 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 90 | ## GKE, AWS & OpenStack) |
| 91 | accessMode: ReadWriteOnce |
| 92 | size: 1Gi |
| 93 | mountPath: /dockerdata-nfs |
| 94 | |
| 95 | config: |
| 96 | pgUserName: timescaledb |
| 97 | pgRootUserName: postgres |
| 98 | pgDatabase: timescaledb |
| 99 | |
| 100 | secrets: |
| 101 | - uid: root-creds |
| 102 | type: basicAuth |
| 103 | externalSecret: '{{ tpl (default "" .Values.config.pgRootPasswordExternalSecret) . }}' |
| 104 | login: '{{ .Values.config.pgRootUserName }}' |
| 105 | password: '{{ .Values.config.pgRootpassword }}' |
| 106 | - uid: user-creds |
| 107 | type: basicAuth |
| 108 | externalSecret: '{{ tpl (default "" .Values.config.pgUserExternalSecret) . }}' |
| 109 | login: '{{ .Values.config.pgUserName }}' |
| 110 | password: '{{ .Values.config.pgUserPassword }}' |
| 111 | |