Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / sdnc / components / ueb-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: '{{ include "common.release" . }}-sdnc-ueb-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-ueb-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   - uid: ueb-creds
50     type: basicAuth
51     externalSecret: '{{ tpl (default "" .Values.config.uebCredsExternalSecret) . }}'
52     login: '{{ .Values.config.uebUser }}'
53     password: '{{ .Values.config.uebPassword }}'
54     passwordPolicy: required
55
56 #################################################################
57 # Application configuration defaults.
58 #################################################################
59 # application image
60 image: onap/sdnc-ueb-listener-image:2.5.5
61 pullPolicy: Always
62
63 # flag to enable debugging - application support required
64 debugEnabled: false
65
66 # application configuration
67 config:
68   sdncPort: 8282
69   sdncChartName: sdnc
70   sdcbeChartName: sdc-be
71   msgRouterContainerName: message-router
72   configDir: /opt/onap/sdnc/data/properties
73   uebUser: sdnc
74   uebPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
75   # uebCredsExternalSecret: some secret
76   odlUser: admin
77   odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
78   # odlCredsExternalSecret: some secret
79
80 mariadb-galera:
81   # '&mariadbConfig' means we "store" the values for  later use in the file
82   # with '*mariadbConfig' pointer.
83   config:
84     userCredentialsExternalSecret: '{{ include "common.release" . }}-sdnc-ueb-listener-db-secret'
85     userName: sdnctl
86     userPassword: gamma
87     mysqlDatabase: sdnctl
88   nameOverride: ueb-listener-galera
89   service:
90     name: ueb-listener-galera
91     portName: ueb-listener-galera
92     internalPort: 3306
93   replicaCount: 1
94   persistence:
95     enabled: true
96     mountSubPath: ueb-listener/maria/data
97   mariadbOperator:
98     galera:
99       enabled: false
100
101 # default number of instances
102 replicaCount: 1
103
104 nodeSelector: {}
105
106 affinity: {}
107
108 # probe configuration parameters
109 liveness:
110   initialDelaySeconds: 10
111   periodSeconds: 10
112   # necessary to disable liveness probe when setting breakpoints
113   # in debugger so K8s doesn't restart unresponsive container
114   enabled: true
115
116 readiness:
117   initialDelaySeconds: 10
118   periodSeconds: 10
119
120 service:
121   type: ClusterIP
122   name: sdnc-ueb-listener
123   internalPort: 80
124   ports:
125     - name: http
126       port: 80
127
128 # Strimzi KafkaUser definition
129 kafkaUser:
130   acls:
131     - name: sdnc
132       type: group
133       operations: [Read]
134     - name: SDC-DISTR
135       type: topic
136       patternType: prefix
137       operations: [Read, Write]
138
139 ingress:
140   enabled: false
141
142 serviceMesh:
143   authorizationPolicy:
144     authorizedPrincipals: []
145
146 #Resource limit flavor -By default using small
147 flavor: small
148 #Segregation for different environment (small and large)
149 resources:
150   small:
151     limits:
152       cpu: "1"
153       memory: "1Gi"
154     requests:
155       cpu: "0.5"
156       memory: "1Gi"
157   large:
158     limits:
159       cpu: "2"
160       memory: "2Gi"
161     requests:
162       cpu: "1"
163       memory: "2Gi"
164   unlimited: {}
165
166 #Pods Service Account
167 serviceAccount:
168   nameOverride: sdnc-ueb-listener
169   roles:
170     - read