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