blob: d2eb090142424c00e44c3ba703274c74b19284ea [file] [log] [blame]
Abdelmuhaimen Seaudi988aeed2021-09-23 21:11:44 +00001# 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#################################################################
18global:
19 postgres:
20 service:
21 name: pgset
22 container:
23 name: postgres
24
25#################################################################
26# Secrets metaconfig
27#################################################################
28secrets:
29 - uid: '{{ include "common.postgres.secret.rootPassUID" . }}'
30 type: password
31 externalSecret: '{{ tpl (default "" .Values.config.pgRootPasswordExternalSecret) . }}'
32 password: '{{ .Values.config.pgRootPassword }}'
33 - uid: '{{ include "common.postgres.secret.userCredentialsUID" . }}'
34 type: basicAuth
35 externalSecret: '{{ tpl (default "" .Values.config.pgUserExternalSecret) . }}'
36 login: '{{ .Values.config.pgUserName }}'
37 password: '{{ .Values.config.pgUserPassword }}'
38 - uid: '{{ include "common.postgres.secret.primaryPasswordUID" . }}'
39 type: password
40 externalSecret: '{{ tpl (default "" .Values.config.pgPrimaryPasswordExternalSecret) . }}'
41 password: '{{ .Values.config.pgPrimaryPassword }}'
42
43#################################################################
44# Application configuration defaults.
45#################################################################
46
47pullPolicy: Always
48
49# application configuration
50config:
51 pgUserName: testuser
52 pgDatabase: userdb
53 pgDataPath: data
54 pgRootPasswordExternalSecret: '{{ include "common.namespace" . }}-postgres-db-root-password'
55 # pgPrimaryPassword: password
56 # pgUserPassword: password
57 # pgRootPassword: password
58
59nodeSelector: {}
60
61affinity: {}
62
63flavor: small
64
65#resources: {}
66# We usually recommend not to specify default resources and to leave this as a conscious
67# choice for the user. This also increases chances charts run on environments with little
68# resources, such as Minikube. If you do want to specify resources, uncomment the following
69# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
70#
71# Example:
72# Configure resource requests and limits
73# ref: http://kubernetes.io/docs/user-guide/compute-resources/
74# Minimum memory for development is 2 CPU cores and 4GB memory
75# Minimum memory for production is 4 CPU cores and 8GB memory
76resources:
77 small:
78 limits:
Andreas Geissler47537432024-02-27 08:55:23 +010079 cpu: "100m"
Andreas Geissler8cbb3d92024-03-12 16:44:56 +010080 memory: "300Mi"
Abdelmuhaimen Seaudi988aeed2021-09-23 21:11:44 +000081 requests:
Andreas Geissler47537432024-02-27 08:55:23 +010082 cpu: "10m"
Andreas Geissler8cbb3d92024-03-12 16:44:56 +010083 memory: "90Mi"
Abdelmuhaimen Seaudi988aeed2021-09-23 21:11:44 +000084 large:
85 limits:
Andreas Geissler47537432024-02-27 08:55:23 +010086 cpu: "2"
87 memory: "4Gi"
Abdelmuhaimen Seaudi988aeed2021-09-23 21:11:44 +000088 requests:
Andreas Geissler47537432024-02-27 08:55:23 +010089 cpu: "1"
90 memory: "2Gi"
Abdelmuhaimen Seaudi988aeed2021-09-23 21:11:44 +000091 unlimited: {}
Andreas Geissler02398152022-05-10 10:30:11 +020092
vladimir turokd8044182023-07-27 16:28:36 +020093#Pods Service Account
94serviceAccount:
95 nameOverride: postgres-init
96 roles:
97 - read
98
rajesh.kumar062e7c22023-10-17 15:29:20 +053099readinessCheck:
100 wait_for:
101 - '{{ .Values.global.postgres.container.name }}'
102
Andreas Geissler02398152022-05-10 10:30:11 +0200103wait_for_job_container:
104 containers:
105 - '{{ include "common.name" . }}-update-config'