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