Merge "[DCAEGEN2] Update chart with service account"
[oom.git] / kubernetes / common / timescaledb / values.yaml
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   # Uid and gid to run the entrypoint of the container process (uid 70 is postgres user and gid 70 is postgres group)
45   runAsUser: 70
46   runAsGroup: 70
47   # capabilities:
48   #   drop:
49   #   - ALL
50   # readOnlyRootFilesystem: true
51   # runAsNonRoot: true
52
53 resources:
54   # We usually recommend not to specify default resources and to leave this as a conscious
55   # choice for the user. This also increases chances charts run on environments with little
56   # resources, such as Minikube. If you do want to specify resources, uncomment the following
57   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
58  limits:
59    cpu: 0.5
60    memory: 256Mi
61  requests:
62    cpu: 20m
63    memory: 256Mi
64
65 nodeSelector: {}
66
67 tolerations: []
68
69 affinity: {}
70
71 service:
72   type: ClusterIP
73   name: timescaledb
74   ports:
75     - name: tcp-timescaledb
76       port: 5432
77
78 persistence:
79   enabled: true
80
81   ## A manually managed Persistent Volume and Claim
82   ## Requires persistence.enabled: true
83   ## If defined, PVC must be created manually before volume will be bound
84   # existingClaim:
85   volumeReclaimPolicy: Retain
86
87   ## database data Persistent Volume Storage Class
88   ## If defined, storageClassName: <storageClass>
89   ## If set to "-", storageClassName: "", which disables dynamic provisioning
90   ## If undefined (the default) or set to null, no storageClassName spec is
91   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
92   ##   GKE, AWS & OpenStack)
93   accessMode: ReadWriteOnce
94   size: 1Gi
95   mountPath: /dockerdata-nfs
96
97 config:
98   pgUserName: timescaledb
99   pgRootUserName: postgres
100   pgDatabase: timescaledb
101
102 secrets:
103   - uid: root-creds
104     type: basicAuth
105     externalSecret: '{{ tpl (default "" .Values.config.pgRootPasswordExternalSecret) . }}'
106     login: '{{ .Values.config.pgRootUserName }}'
107     password: '{{ .Values.config.pgRootpassword }}'
108   - uid: user-creds
109     type: basicAuth
110     externalSecret: '{{ tpl (default "" .Values.config.pgUserExternalSecret) . }}'
111     login: '{{ .Values.config.pgUserName }}'
112     password: '{{ .Values.config.pgUserPassword }}'
113