9fe823253232e86e92af6d113c7e37f5d60224af
[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   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: &dbSecretName '{{ include "common.release" . }}-sdnc-dmaap-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-dmaap-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
54 #################################################################
55 # Application configuration defaults.
56 #################################################################
57 # application image
58 repository: nexus3.onap.org:10001
59 image: onap/sdnc-dmaap-listener-image:1.8.4
60 pullPolicy: Always
61
62 # flag to enable debugging - application support required
63 debugEnabled: false
64
65 # application configuration
66 config:
67   dmaapPort: 3904
68   sdncChartName: sdnc
69   sdncPort: 8282
70   msgRouterContainerName: message-router
71   configDir: /opt/onap/sdnc/data/properties
72   odlUser: admin
73   odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
74   # odlCredsExternalSecret: some secret
75
76 mariadb-galera:
77   config:
78     userCredentialsExternalSecret: *dbSecretName
79     userName: sdnctl
80     userPassword: gamma
81     mysqlDatabase: sdnctl
82   nameOverride: dmaap-listener-galera
83   service:
84     name: dmaap-listener-galera
85     portName: dmaap-listener-galera
86     internalPort: 3306
87   replicaCount: 1
88   persistence:
89     enabled: true
90     mountSubPath: dmaap-listener/maria/data
91
92 # default number of instances
93 replicaCount: 1
94
95 nodeSelector: {}
96
97 affinity: {}
98
99 # probe configuration parameters
100 liveness:
101   initialDelaySeconds: 10
102   periodSeconds: 10
103   # necessary to disable liveness probe when setting breakpoints
104   # in debugger so K8s doesn't restart unresponsive container
105   enabled: true
106
107 readiness:
108   initialDelaySeconds: 10
109   periodSeconds: 10
110
111 ingress:
112   enabled: false
113
114 service:
115   name: sdnc-dmaap-listener
116
117 #Resource limit flavor -By default using small
118 flavor: small
119 #Segregation for different environment (small and large)
120
121 resources:
122   small:
123     limits:
124       cpu: 2
125       memory: 2Gi
126     requests:
127       cpu: 100m
128       memory: 1Gi
129   large:
130     limits:
131       cpu: 2
132       memory: 4Gi
133     requests:
134       cpu: 1
135       memory: 2Gi
136   unlimited: {}