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