f6ce95a65fa891c9d87ff2055f5198f6254e2152
[oom.git] / kubernetes / common / mariadb-init / values.yaml
1 # Copyright © 2018 Amdocs, Bell Canada
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   repository: nexus3.onap.org:10001
20   readinessRepository: oomk8s
21   readinessImage: readiness-check:2.0.2
22   mariadbGalera:
23     nameOverride: mariadb-galera
24     servicePort: 3306
25     # set these two values if you want to access an 'out of ONAP' mariadb
26     # userRootPassword: some-password
27     # userRootSecret: some-secret-name
28     # userRootSecretKey: password
29
30 #################################################################
31 # Secrets metaconfig
32 #################################################################
33 secrets:
34   - uid: root-password
35     type: password
36     externalSecret: '{{ tpl (default (include "mariadbInit.mariadbClusterSecret" .) .Values.global.mariadbGalera.userRootSecret) . }}'
37     password: '{{ tpl (default "" .global.mariadbGalera.userRootPassword) . }}'
38   - uid: '{{ .Values.config.mysqlDatabase }}'
39     type: basicAuth
40     externalSecret: '{{ tpl (default "" .Values.config.userCredentialsExternalSecret) . }}'
41     login: '{{ .Values.config.userName }}'
42     password: '{{ .Values.config.userPassword }}'
43     passwordPolicy: required
44
45 #################################################################
46 # Application configuration defaults.
47 #################################################################
48
49 image: mariadb:10.1.38
50 pullPolicy: IfNotPresent
51
52 # Set it if you want to change the name of the different components
53 # nameOverride:
54
55 config:
56   userPassword: Ci@shsOd3pky1Vji
57   userName: u5WZ1GMSIS1wHZF
58   # set this value if you would like to use external secret instead of providing a password
59   # userCredentialsExternalsecret: some-secret-name
60   mysqlDatabase: ynsaUCru6mUNwGal
61   mysqlAdditionalDatabases: {}
62   # add addtional dabases
63   # this is an dict
64   # Example:
65   # mysqlAdditionalDatabases:
66   #   dbOne:
67   #     user: one
68   #     password: pwd1
69   #     externalSecret: some-secret-name
70   #   dbTwo:
71   #     user: two
72   #     password: pwd2
73   #     externalSecret: some-secret-name
74   config_map: default
75
76 nodeSelector: {}
77
78 affinity: {}
79
80 #resources: {}
81   # We usually recommend not to specify default resources and to leave this as a conscious
82   # choice for the user. This also increases chances charts run on environments with little
83   # resources, such as Minikube. If you do want to specify resources, uncomment the following
84   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
85   #
86   # Example:
87   # Configure resource requests and limits
88   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
89   # Minimum memory for development is 2 CPU cores and 4GB memory
90   # Minimum memory for production is 4 CPU cores and 8GB memory
91 flavor: small
92 resources:
93   small:
94     limits:
95       cpu: 100m
96       memory: 500Mi
97     requests:
98       cpu: 10m
99       memory: 10Mi
100   large:
101     limits:
102       cpu: 200m
103       memory: 500Mi
104     requests:
105       cpu: 20m
106       memory: 20Mi
107   unlimited: {}