Merge "[AAI] Add model-loader tracing config"
[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   mariadbGalera: &mariadbGalera
20     # flag to enable the DB creation via mariadb-operator
21     useOperator: true
22     #This flag allows DMAAP-DR to instantiate its own mariadb-galera cluster
23     localCluster: false
24     service: mariadb-galera
25     internalPort: 3306
26     nameOverride: mariadb-galera
27
28 #################################################################
29 # Secrets metaconfig
30 #################################################################
31 secrets:
32   - name: &dbUserSecretName '{{ include "common.release" . }}-dmaap-dr-db-user-credentials'
33     uid: 'dmaap-dr-db-user-credentials'
34     type: basicAuth
35     externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "dmaap-dr-db-user-credentials" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
36     login: '{{ index .Values "mariadb-galera" "db" "user" }}'
37     password: '{{ index .Values "mariadb-galera" "db" "password" }}'
38
39 #################################################################
40 # Application configuration defaults.
41 #################################################################
42 # application image
43 image: onap/dmaap/datarouter-prov:2.1.15
44 pullPolicy: Always
45
46 # default number of instances
47 replicaCount: 1
48
49 nodeSelector: {}
50
51 affinity: {}
52
53 containerPort: &svc_port 8080
54
55 service:
56   type: ClusterIP
57   name: dmaap-dr-prov
58   ports:
59     - name: &port http
60       port: *svc_port
61
62 ingress:
63   enabled: false
64   service:
65     - baseaddr: "dmaap-dr-prov-api"
66       name: "dmaap-dr-prov"
67       port: *svc_port
68   config:
69     ssl: "redirect"
70
71 readinessCheck:
72   wait_for:
73     jobs:
74       - '{{ include "common.release" . }}-dmaap-dr-mariadb-init-config-job'
75
76 # dr uses the EELF Logging framework https://github.com/att/EELF
77 # and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF
78 logLevel: "DEBUG"
79
80 # probe configuration parameters
81 liveness:
82   initialDelaySeconds: 60
83   periodSeconds: 10
84   # necessary to disable liveness probe when setting breakpoints
85   # in debugger so K8s doesn't restart unresponsive container
86   enabled: true
87   port: *svc_port
88
89 readiness:
90   initialDelaySeconds: 60
91   periodSeconds: 10
92   port: *svc_port
93
94 # mariadb-galera configuration
95 mariadb-galera:
96   nameOverride: &dbServer dmaap-dr-db
97   replicaCount: 1
98   mariadbOperator:
99     galera:
100       enabled: false
101   db:
102     name: &mysqlDbName datarouter
103     user: datarouter
104     # password:
105     externalSecret: *dbUserSecretName
106   service:
107     name: *dbServer
108   nfsprovisionerPrefix: dmaap-dr-db
109   persistence:
110     size: 1Gi
111     mountSubPath: data-router/dr-db-data
112   serviceAccount:
113     nameOverride: *dbServer
114
115 mariadb-init:
116   config:
117     userCredentialsExternalSecret: *dbUserSecretName
118     mysqlDatabase: *mysqlDbName
119   nameOverride: dmaap-dr-mariadb-init
120   serviceAccount:
121     nameOverride: dmaap-dr-mariadb-init
122
123 # Resource Limit flavor -By Default using small
124 flavor: small
125
126 # Segregation for Different environment (Small and Large)
127 resources:
128   small:
129     limits:
130       cpu: "1"
131       memory: "1Gi"
132     requests:
133       cpu: "0.5"
134       memory: "1Gi"
135   large:
136     limits:
137       cpu: "2"
138       memory: "2Gi"
139     requests:
140       cpu: "1"
141       memory: "2Gi"
142   unlimited: {}
143
144 #Pods Security Context
145 securityContext:
146   user_id: 1000
147   group_id: 1000
148
149 #Pods Service Account
150 serviceAccount:
151   nameOverride: dmaap-dr-prov
152   roles:
153     - read