Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / common / postgres-init / values.yaml
1 # Copyright © 2021 Orange
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 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   postgres:
20     service:
21       name: pgset
22       name2: tcp-pgset-primary
23     container:
24       name: postgres
25
26 #################################################################
27 # Secrets metaconfig
28 #################################################################
29 secrets:
30   - uid: '{{ include "common.postgres.secret.rootPassUID" . }}'
31     type: password
32     externalSecret: '{{ tpl (default "" .Values.config.pgRootPasswordExternalSecret) . }}'
33     password: '{{ .Values.config.pgRootPassword }}'
34   - uid: '{{ include "common.postgres.secret.userCredentialsUID" . }}'
35     type: basicAuth
36     externalSecret: '{{ tpl (default "" .Values.config.pgUserExternalSecret) . }}'
37     login: '{{ .Values.config.pgUserName }}'
38     password: '{{ .Values.config.pgUserPassword }}'
39   - uid: '{{ include "common.postgres.secret.primaryPasswordUID" . }}'
40     type: password
41     externalSecret: '{{ tpl (default "" .Values.config.pgPrimaryPasswordExternalSecret) . }}'
42     password: '{{ .Values.config.pgPrimaryPassword }}'
43
44 #################################################################
45 # Application configuration defaults.
46 #################################################################
47
48 pullPolicy: Always
49
50 # application configuration
51 config:
52   pgUserName: testuser
53   pgDatabase: userdb
54   pgDataPath: data
55   pgRootPasswordExternalSecret: '{{ include "common.namespace" . }}-postgres-db-root-password'
56   # pgPrimaryPassword: password
57   # pgUserPassword: password
58   # pgRootPassword: password
59
60 nodeSelector: {}
61
62 affinity: {}
63
64 flavor: small
65
66 #resources: {}
67 # We usually recommend not to specify default resources and to leave this as a conscious
68 # choice for the user. This also increases chances charts run on environments with little
69 # resources, such as Minikube. If you do want to specify resources, uncomment the following
70 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
71 #
72 # Example:
73 # Configure resource requests and limits
74 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
75 # Minimum memory for development is 2 CPU cores and 4GB memory
76 # Minimum memory for production is 4 CPU cores and 8GB memory
77 resources:
78   small:
79     limits:
80       cpu: "100m"
81       memory: "300Mi"
82     requests:
83       cpu: "10m"
84       memory: "90Mi"
85   large:
86     limits:
87       cpu: "2"
88       memory: "4Gi"
89     requests:
90       cpu: "1"
91       memory: "2Gi"
92   unlimited: {}
93
94 #Pods Service Account
95 serviceAccount:
96   nameOverride: postgres-init
97   roles:
98     - read
99
100 readinessCheck:
101   wait_for:
102     services:
103     - '{{ .Values.global.postgres.service.name2 }}'
104
105 wait_for_job_container:
106   containers:
107     - '{{ include "common.name" . }}-update-config'