Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / sdnc / components / dmaap-listener / 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   mariadbGalera:
21     #This flag allows SO to instantiate its own mariadb-galera cluster
22     #If shared instance is used, this chart assumes that DB already exists
23     localCluster: false
24     service: mariadb-galera
25     internalPort: 3306
26     nameOverride: mariadb-galera
27
28 #################################################################
29 # Secrets metaconfig
30 #################################################################
31 secrets:
32   - uid: db-secret
33     name: &dbSecretName '{{ include "common.release" . }}-sdnc-dmaap-listener-db-secret'
34     type: basicAuth
35     # This is a nasty trick that allows you override this secret using external one
36     # with the same field that is used to pass this to subchart
37     externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "sdnc-dmaap-listener-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}'
38     login: '{{ index .Values "mariadb-galera" "config" "userName" }}'
39     password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}'
40     passwordPolicy: required
41   - uid: odl-creds
42     type: basicAuth
43     externalSecret: '{{ tpl (default "" .Values.config.odlCredsExternalSecret) . }}'
44     login: '{{ .Values.config.odlUser }}'
45     password: '{{ .Values.config.odlPassword }}'
46     passwordPolicy: required
47
48 #################################################################
49 # Application configuration defaults.
50 #################################################################
51 # application image
52 image: onap/sdnc-dmaap-listener-image:2.3.2
53 pullPolicy: Always
54
55 # flag to enable debugging - application support required
56 debugEnabled: false
57
58 # application configuration
59 config:
60   dmaapPort: 3904
61   sdncChartName: sdnc
62   sdncPort: 8282
63   msgRouterContainerName: message-router
64   configDir: /opt/onap/sdnc/data/properties
65   odlUser: admin
66   odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
67   # odlCredsExternalSecret: some secret
68
69 mariadb-galera:
70   config:
71     userCredentialsExternalSecret: *dbSecretName
72     userName: sdnctl
73     userPassword: gamma
74     mysqlDatabase: sdnctl
75   nameOverride: dmaap-listener-galera
76   service:
77     name: dmaap-listener-galera
78     portName: dmaap-listener-galera
79     internalPort: 3306
80   replicaCount: 1
81   persistence:
82     enabled: true
83     mountSubPath: dmaap-listener/maria/data
84
85 # default number of instances
86 replicaCount: 1
87
88 nodeSelector: {}
89
90 affinity: {}
91
92 # probe configuration parameters
93 liveness:
94   initialDelaySeconds: 10
95   periodSeconds: 10
96   # necessary to disable liveness probe when setting breakpoints
97   # in debugger so K8s doesn't restart unresponsive container
98   enabled: true
99
100 readiness:
101   initialDelaySeconds: 10
102   periodSeconds: 10
103
104 ingress:
105   enabled: false
106
107 service:
108   name: sdnc-dmaap-listener
109
110 #Resource limit flavor -By default using small
111 flavor: small
112 #Segregation for different environment (small and large)
113
114 resources:
115   small:
116     limits:
117       cpu: 2
118       memory: 2Gi
119     requests:
120       cpu: 100m
121       memory: 1Gi
122   large:
123     limits:
124       cpu: 2
125       memory: 4Gi
126     requests:
127       cpu: 1
128       memory: 2Gi
129   unlimited: {}
130
131 #Pods Service Account
132 serviceAccount:
133   nameOverride: sdnc-dmaap-listener
134   roles:
135     - read