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 | |
Bruno Sakoto | d0fa8cf | 2021-09-15 18:30:20 -0400 | [diff] [blame] | 40 | securityContext: |
| 41 | # Uid and gid to run the entrypoint of the container process (uid 70 is postgres user and gid 70 is postgres group) |
Renu Kumari | bc6eede | 2021-10-08 13:03:10 -0400 | [diff] [blame^] | 42 | user_id: 70 |
| 43 | group_id: 70 |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 44 | # capabilities: |
| 45 | # drop: |
| 46 | # - ALL |
| 47 | # readOnlyRootFilesystem: true |
| 48 | # runAsNonRoot: true |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 49 | |
Renu Kumari | bc6eede | 2021-10-08 13:03:10 -0400 | [diff] [blame^] | 50 | flavor: small |
| 51 | |
| 52 | #resources: {} |
| 53 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 54 | # choice for the user. This also increases chances charts run on environments with little |
| 55 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 56 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 57 | # |
| 58 | # Example: |
| 59 | # Configure resource requests and limits |
| 60 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 61 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 62 | # Minimum memory for production is 4 CPU cores and 8GB memory |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 63 | resources: |
Renu Kumari | bc6eede | 2021-10-08 13:03:10 -0400 | [diff] [blame^] | 64 | small: |
| 65 | limits: |
| 66 | cpu: 100m |
| 67 | memory: 300Mi |
| 68 | requests: |
| 69 | cpu: 10m |
| 70 | memory: 90Mi |
| 71 | large: |
| 72 | limits: |
| 73 | cpu: 2 |
| 74 | memory: 4Gi |
| 75 | requests: |
| 76 | cpu: 1 |
| 77 | memory: 2Gi |
| 78 | unlimited: {} |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 79 | |
| 80 | nodeSelector: {} |
| 81 | |
| 82 | tolerations: [] |
| 83 | |
| 84 | affinity: {} |
| 85 | |
| 86 | service: |
| 87 | type: ClusterIP |
| 88 | name: timescaledb |
| 89 | ports: |
| 90 | - name: tcp-timescaledb |
| 91 | port: 5432 |
| 92 | |
| 93 | persistence: |
| 94 | enabled: true |
| 95 | |
| 96 | ## A manually managed Persistent Volume and Claim |
| 97 | ## Requires persistence.enabled: true |
| 98 | ## If defined, PVC must be created manually before volume will be bound |
| 99 | # existingClaim: |
| 100 | volumeReclaimPolicy: Retain |
| 101 | |
| 102 | ## database data Persistent Volume Storage Class |
| 103 | ## If defined, storageClassName: <storageClass> |
| 104 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 105 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 106 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 107 | ## GKE, AWS & OpenStack) |
| 108 | accessMode: ReadWriteOnce |
| 109 | size: 1Gi |
| 110 | mountPath: /dockerdata-nfs |
| 111 | |
| 112 | config: |
| 113 | pgUserName: timescaledb |
| 114 | pgRootUserName: postgres |
| 115 | pgDatabase: timescaledb |
| 116 | |
| 117 | secrets: |
| 118 | - uid: root-creds |
| 119 | type: basicAuth |
| 120 | externalSecret: '{{ tpl (default "" .Values.config.pgRootPasswordExternalSecret) . }}' |
| 121 | login: '{{ .Values.config.pgRootUserName }}' |
| 122 | password: '{{ .Values.config.pgRootpassword }}' |
| 123 | - uid: user-creds |
| 124 | type: basicAuth |
| 125 | externalSecret: '{{ tpl (default "" .Values.config.pgUserExternalSecret) . }}' |
| 126 | login: '{{ .Values.config.pgUserName }}' |
| 127 | password: '{{ .Values.config.pgUserPassword }}' |
| 128 | |