Merge "[COMMON] Fix trailing blanks found by pre-commit"
[oom.git] / kubernetes / dmaap / components / dmaap-dr-prov / 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
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefix: 302
20   loggingDirectory: /opt/app/datartr/logs
21   persistence: {}
22   mariadbGalera: &mariadbGalera
23     #This flag allows DMAAP-DR to instantiate its own mariadb-galera cluster
24     localCluster: false
25     service: mariadb-galera
26     internalPort: 3306
27     nameOverride: mariadb-galera
28
29 #################################################################
30 # Secrets metaconfig
31 #################################################################
32 secrets:
33   - name: &dbUserSecretName '{{ include "common.release" . }}-dmaap-dr-db-user-credentials'
34     uid: 'dmaap-dr-db-user-credentials'
35     type: basicAuth
36     externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "dmaap-dr-db-user-credentials" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
37     login: '{{ index .Values "mariadb-galera" "db" "user" }}'
38     password: '{{ index .Values "mariadb-galera" "db" "password" }}'
39
40 #################################################################
41 # Application configuration defaults.
42 #################################################################
43 # application image
44 image: onap/dmaap/datarouter-prov:2.1.9
45 pullPolicy: Always
46
47 # flag to enable debugging - application support required
48 debugEnabled: false
49
50 # application configuration - see parent values chart
51
52 # default number of instances
53 replicaCount: 1
54
55 nodeSelector: {}
56
57 affinity: {}
58
59 # probe configuration parameters
60 liveness:
61   initialDelaySeconds: 30
62   periodSeconds: 10
63   # necessary to disable liveness probe when setting breakpoints
64   # in debugger so K8s doesn't restart unresponsive container
65   enabled: true
66
67 readiness:
68   initialDelaySeconds: 30
69   periodSeconds: 10
70
71 ## Persist data to a persitent volume
72 persistence:
73   enabled: true
74   volumeReclaimPolicy: Retain
75   accessMode: ReadWriteOnce
76   mountPath: /dockerdata-nfs
77
78 ingress:
79   enabled: false
80   service:
81     - baseaddr: "dmaapdrprov"
82       name: "dmaap-dr-prov"
83       port: 8443
84   config:
85     ssl: "redirect"
86
87 config:
88   # dr provisioning server configuration
89   dmaapDrProv:
90     servicetype: NodePort
91     internalPort: 8080
92     internalPort2: 8443
93     portName: dr-prov-port
94     portName2: dr-prov-port2
95     nodePort: 59
96     nodePort2: 69
97     # dr uses the EELF Logging framework https://github.com/att/EELF
98     # and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF
99     logLevel: "INFO"
100
101 # mariadb-galera configuration
102 mariadb-galera:
103   nameOverride: &dbServer dmaap-dr-db
104   replicaCount: 1
105   db:
106     name: &mysqlDbName datarouter
107     user: datarouter
108     # password:
109     externalSecret: *dbUserSecretName
110   service:
111     name: *dbServer
112   nfsprovisionerPrefix: dmaap-dr-db
113   persistence:
114     size: 1Gi
115     mountSubPath: data-router/dr-db-data
116   serviceAccount:
117     nameOverride: *dbServer
118
119 mariadb-init:
120   config:
121     userCredentialsExternalSecret: *dbUserSecretName
122     mysqlDatabase: *mysqlDbName
123   nameOverride: dmaap-dr-mariadb-init
124
125 #################################################################
126 # AAF part
127 #################################################################
128 certInitializer:
129   nameOverride: dmaap-dr-prov-cert-initializer
130   aafDeployFqi: deployer@people.osaaf.org
131   aafDeployPass: demo123456!
132 # aafDeployCredsExternalSecret: some secret
133   fqdn: dmaap-dr-prov
134   fqi: dmaap-dr-prov@dmaap-dr.onap.org
135   publicFqdn: dmaap-dr.onap.org
136   cadiLatitude: 0.0
137   cadiLongitude: 0.0
138   app_ns: org.osaaf.aaf
139   credsPath: /opt/app/osaaf/local
140
141
142 # Resource Limit flavor -By Default using small
143 flavor: small
144 # Segregation for Different environment (Small and Large)
145 resources:
146   small:
147     limits:
148       cpu: 2000m
149       memory: 4Gi
150     requests:
151       cpu: 500m
152       memory: 1Gi
153   large:
154     limits:
155       cpu: 4000m
156       memory: 8Gi
157     requests:
158       cpu: 1000m
159       memory: 2Gi
160   unlimited: {}
161
162 #Pods Service Account
163 serviceAccount:
164   nameOverride: dmaap-dr-prov
165   roles:
166     - read