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