Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / cps / components / ncmp-dmi-plugin / values.yaml
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021 Nordix Foundation
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18
19 #################################################################
20 # Secrets.
21 #################################################################
22 secrets:
23   - uid: app-user-creds
24     type: basicAuth
25     externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}'
26     login: '{{ .Values.config.appUserName }}'
27     password: '{{ .Values.config.appUserPassword }}'
28     passwordPolicy: generate
29   - uid: sdnc-creds
30     type: basicAuth
31     externalSecret: '{{ tpl (default "" .Values.config.odlCredsExternalSecret) . }}'
32     login: '{{ .Values.config.sdnc.username }}'
33     password: '{{ .Values.config.sdnc.password }}'
34     passwordPolicy: required
35   - uid: cps-core-creds
36     type: basicAuth
37     externalSecret: '{{ tpl (default "" .Values.config.cpsCore.credsExternalSecret) . }}'
38     login: '{{ .Values.config.cpsCore.username }}'
39     password: '{{ .Values.config.cpsCore.password }}'
40     passwordPolicy: generate
41
42 #################################################################
43 # Global configuration defaults.
44 #################################################################
45 global:
46   ingress:
47     virtualhost:
48       baseurl: "simpledemo.onap.org"
49
50 image: onap/ncmp-dmi-plugin:1.4.0
51 containerPort: &svc_port 8080
52
53 prometheus:
54   enabled: false
55
56 service:
57   type: ClusterIP
58   name: &svc_name ncmp-dmi-plugin
59   ports:
60     - name: &port http
61       port: *svc_port
62
63 metrics:
64   serviceMonitor:
65     port: http
66       ## specify target port if name is not given to the port in the service definition
67       ##
68     # targetPort: 8080
69     path: /actuator/prometheus
70     interval: 60s
71     basicAuth:
72       enabled: false
73
74 pullPolicy: IfNotPresent
75 # flag to enable debugging - application support required
76 debugEnabled: false
77 nodeSelector: {}
78 affinity: {}
79 # Resource Limit flavor -By Default using small
80 flavor: small
81 # default number of instances
82 replicaCount: 1
83 # Segregation for Different environment (Small and Large)
84 resources:
85   small:
86     limits:
87       cpu: "2"
88       memory: "1Gi"
89     requests:
90       cpu: "1"
91       memory: "1Gi"
92   large:
93     limits:
94       cpu: "4"
95       memory: "2Gi"
96     requests:
97       cpu: "2"
98       memory: "2Gi"
99   unlimited: {}
100 # probe configuration parameters
101 liveness:
102   initialDelaySeconds: 20
103   periodSeconds: 20
104   # necessary to disable liveness probe when setting breakpoints
105   # in debugger so K8s doesn't restart unresponsive container
106   enabled: true
107   path: /actuator/health
108   port: *svc_port
109
110 readiness:
111   initialDelaySeconds: 15
112   periodSeconds: 15
113   path: /actuator/health
114   port: *svc_port
115
116 ingress:
117   enabled: true
118   service:
119     - baseaddr: "cps-ncmp-dmi-plugin-api"
120       path: "/"
121       name: *svc_name
122       port: *svc_port
123
124 serviceAccount:
125   nameOverride: ncmp-dmi-plugin
126   roles:
127     - read
128
129 securityContext:
130   user_id: 100
131   group_id: 655533
132
133 #################################################################
134 # Application configuration defaults.
135 #################################################################
136
137 config:
138
139   # REST API basic authentication credentials (passsword is generated if not provided)
140   appUserName: ncmpuser
141   #appUserPassword:
142   spring:
143     profile: helm
144
145   dmiServiceUrl: http://*svc_name:*svc_port
146   sdnc:
147     url: http://sdnc:8181
148     username: admin
149     password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
150     topologyId: topology-netconf
151   cpsCore:
152     url: http://cps-core:8080
153     username: cpsuser
154     #password:
155
156 # Any new property can be added in the env by setting in overrides in the format mentioned below
157 # All the added properties must be in "key: value" format insead of yaml.
158 #  additional:
159 #    spring.config.max-size: 200
160 #    spring.config.min-size: 10
161
162 logging:
163   level: DEBUG
164   cps: DEBUG
165   path: /tmp
166
167 readinessCheck:
168   wait_for:
169     services:
170       - cps-core
171
172 minReadySeconds: 10
173 updateStrategy:
174   type: RollingUpdate
175   maxUnavailable: 0
176   maxSurge: 1
177
178 # Strimzi KafkaUser and Topic config
179 kafkaTopic:
180   - name: &ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic ncmp-dmi-cm-avc-subscription-ncmp-dmi-plugin
181     retentionMs: 7200000
182     segmentBytes: 1073741824
183   - name: &dmiNcmpCmAvcSubscriptionTopic dmi-ncmp-cm-avc-subscription
184     retentionMs: 7200000
185     segmentBytes: 1073741824
186   - name: &ncmpAsyncM2MTopic ncmp-async-m2m
187     retentionMs: 7200000
188     segmentBytes: 1073741824
189
190 kafkaUser:
191   authenticationType: scram-sha-512
192   acls:
193     - name: ncmp-dmi-plugin-group
194       type: group
195       operations: [Read]
196     - name: *ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic
197       type: topic
198       operations: [Read]
199     - name: *dmiNcmpCmAvcSubscriptionTopic
200       type: topic
201       operations: [Write]
202     - name: *ncmpAsyncM2MTopic
203       type: topic
204       operations: [Write]
205
206 topics:
207   config:
208     app.ncmp.async.topic: *ncmpAsyncM2MTopic
209     app.dmi.avc.subscription-topic: *ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic
210     app.dmi.avc.subscription-response-topic: *dmiNcmpCmAvcSubscriptionTopic