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