Merge "[DMaaP DR] Enable persistence for Claims"
[oom.git] / kubernetes / so / charts / so-mariadb / values.yaml
1 # Copyright © 2017 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 # Default values for mariadb.
15 # This is a YAML-formatted file.
16 # Declare variables to be passed into your templates.
17 #################################################################
18 # Global configuration defaults.
19 #################################################################
20 global:
21   nodePortPrefix: 302
22   nodePortPrefixExt: 304
23   repository: nexus3.onap.org:10001
24   readinessRepository: oomk8s
25   readinessImage: readiness-check:2.0.2
26   ubuntuInitRepository: registry.hub.docker.com
27
28 #################################################################
29 # Secrets metaconfig
30 #################################################################
31 secrets:
32   - uid: db-root-pass
33     name: '{{ include "common.release" . }}-so-mariadb-root-pass'
34     type: password
35     externalSecret: '{{ .Values.db.rootPasswordExternalSecret }}'
36     password: '{{ .Values.db.rootPassword }}'
37     passwordPolicy: required
38   - uid: db-backup-creds
39     name: '{{ include "common.release" . }}-so-mariadb-backup-creds'
40     type: basicAuth
41     externalSecret: '{{ .Values.db.backupCredsExternalSecret }}'
42     login: '{{ .Values.db.backupUser }}'
43     password: '{{ .Values.db.backupPassword }}'
44     passwordPolicy: required
45     annotations:
46       helm.sh/hook: pre-upgrade,pre-install
47       helm.sh/hook-weight: "0"
48       helm.sh/hook-delete-policy: before-hook-creation
49
50 #################################################################
51 # Application configuration defaults.
52 #################################################################
53 # application image
54 repository: nexus3.onap.org:10001
55 image: mariadb:10.1.38
56 pullPolicy: Always
57 ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
58
59 # db config
60 db:
61   rootPassword: secretpassword
62   # rootPasswordExternalSecret: some secret
63   backupPassword: secretpassword
64   backupUser: root
65   # backupCredsExternalSecret: some secret
66 # application configuration
67 config:
68   # gerrit branch where the latest heat code is checked in
69   gerritBranch: master
70   # gerrit project where the latest heat code is checked in
71   gerritProject: http://gerrit.onap.org/r/so/docker-config.git
72 # default number of instances
73 nodeSelector: {}
74 affinity: {}
75
76 ingress:
77   enabled: false
78
79 # Resource Limit flavor
80 flavor: small
81
82 resources:
83   small:
84     limits:
85       cpu: 2
86       memory: 4Gi
87     requests:
88       cpu: 1
89       memory: 2Gi
90   large:
91     limits:
92       cpu: 4
93       memory: 8Gi
94     requests:
95       cpu: 2
96       memory: 4Gi
97   unlimited: {}
98
99 persistence:
100   enabled: true
101   ## A manually managed Persistent Volume and Claim
102   ## Requires persistence.enabled: true
103   ## If defined, PVC must be created manually before volume will be bound
104   # existingClaim:
105   volumeReclaimPolicy: Retain
106   ## database data Persistent Volume Storage Class
107   ## If defined, storageClassName: <storageClass>
108   ## If set to "-", storageClassName: "", which disables dynamic provisioning
109   ## If undefined (the default) or set to null, no storageClassName spec is
110   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
111   ##   GKE, AWS & OpenStack)
112   ##
113   # storageClass: "-"
114   accessMode: ReadWriteMany
115   size: 2Gi
116
117   mountPath: /dockerdata-nfs
118   mountSubPath: so/migration