blob: c9d5c33fcadd0a7d5e95d2cc4f8622f9e2470221 [file] [log] [blame]
shivasubedic615a892021-08-24 13:17:07 +01001# ============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#################################################################
22secrets:
Renu Kumaribcacd772021-09-16 15:36:23 -040023 - uid: app-user-creds
shivasubedic615a892021-08-24 13:17:07 +010024 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) . }}'
Renu Kumaribcacd772021-09-16 15:36:23 -040032 login: '{{ .Values.config.sdnc.username }}'
33 password: '{{ .Values.config.sdnc.password }}'
shivasubedic615a892021-08-24 13:17:07 +010034 passwordPolicy: required
Renu Kumaribcacd772021-09-16 15:36:23 -040035 - uid: cps-core-creds
shivasubedic615a892021-08-24 13:17:07 +010036 type: basicAuth
Renu Kumaribcacd772021-09-16 15:36:23 -040037 externalSecret: '{{ tpl (default "" .Values.config.cpsCore.credsExternalSecret) . }}'
38 login: '{{ .Values.config.cpsCore.username }}'
39 password: '{{ .Values.config.cpsCore.password }}'
shivasubedic615a892021-08-24 13:17:07 +010040 passwordPolicy: generate
41
42#################################################################
43# Global configuration defaults.
44#################################################################
45global:
46 ingress:
47 virtualhost:
48 baseurl: "simpledemo.onap.org"
49
mpriyank8cb16a62023-11-03 12:16:54 +000050image: onap/ncmp-dmi-plugin:1.4.0
shivasubedic615a892021-08-24 13:17:07 +010051containerPort: &svc_port 8080
shivasubedic615a892021-08-24 13:17:07 +010052
53prometheus:
Bruno Sakoto45ee4f02021-11-19 19:07:00 -050054 enabled: false
shivasubedic615a892021-08-24 13:17:07 +010055
56service:
57 type: ClusterIP
Renu Kumaribcacd772021-09-16 15:36:23 -040058 name: &svc_name ncmp-dmi-plugin
shivasubedic615a892021-08-24 13:17:07 +010059 ports:
60 - name: &port http
61 port: *svc_port
shivasubedic615a892021-08-24 13:17:07 +010062
Renu Kumaribcacd772021-09-16 15:36:23 -040063metrics:
64 serviceMonitor:
mpriyank8cb16a62023-11-03 12:16:54 +000065 port: http
Renu Kumaribcacd772021-09-16 15:36:23 -040066 ## specify target port if name is not given to the port in the service definition
67 ##
68 # targetPort: 8080
mpriyank8cb16a62023-11-03 12:16:54 +000069 path: /actuator/prometheus
Renu Kumaribcacd772021-09-16 15:36:23 -040070 interval: 60s
71 basicAuth:
72 enabled: false
73
shivasubedic615a892021-08-24 13:17:07 +010074pullPolicy: IfNotPresent
75# flag to enable debugging - application support required
76debugEnabled: false
77nodeSelector: {}
78affinity: {}
79# Resource Limit flavor -By Default using small
80flavor: small
81# default number of instances
82replicaCount: 1
83# Segregation for Different environment (Small and Large)
84resources:
85 small:
86 limits:
vladimir turokdb8167b2023-09-20 11:09:21 +020087 cpu: 2
Andreas Geissler555db9c2023-06-20 11:38:39 +020088 memory: 1Gi
shivasubedic615a892021-08-24 13:17:07 +010089 requests:
90 cpu: 1
91 memory: 1Gi
92 large:
93 limits:
vladimir turokdb8167b2023-09-20 11:09:21 +020094 cpu: 4
Andreas Geissler555db9c2023-06-20 11:38:39 +020095 memory: 2Gi
shivasubedic615a892021-08-24 13:17:07 +010096 requests:
97 cpu: 2
98 memory: 2Gi
99 unlimited: {}
100# probe configuration parameters
101liveness:
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
mpriyank8cb16a62023-11-03 12:16:54 +0000107 path: /actuator/health
108 port: *svc_port
shivasubedic615a892021-08-24 13:17:07 +0100109
110readiness:
111 initialDelaySeconds: 15
112 periodSeconds: 15
mpriyank8cb16a62023-11-03 12:16:54 +0000113 path: /actuator/health
114 port: *svc_port
shivasubedic615a892021-08-24 13:17:07 +0100115
116ingress:
117 enabled: true
118 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200119 - baseaddr: "cps-ncmp-dmi-plugin-api"
shivasubedic615a892021-08-24 13:17:07 +0100120 path: "/"
Renu Kumaribcacd772021-09-16 15:36:23 -0400121 name: *svc_name
shivasubedic615a892021-08-24 13:17:07 +0100122 port: *svc_port
123
124serviceAccount:
125 nameOverride: ncmp-dmi-plugin
126 roles:
127 - read
128
129securityContext:
130 user_id: 100
131 group_id: 655533
132
133#################################################################
134# Application configuration defaults.
135#################################################################
136
137config:
138
139 # REST API basic authentication credentials (passsword is generated if not provided)
140 appUserName: ncmpuser
Renu Kumaribcacd772021-09-16 15:36:23 -0400141 #appUserPassword:
shivasubedic615a892021-08-24 13:17:07 +0100142 spring:
143 profile: helm
shivasubedic615a892021-08-24 13:17:07 +0100144
DylanB95EST3b39ac82021-10-13 15:23:20 +0100145 dmiServiceUrl: http://*svc_name:*svc_port
Renu Kumaribcacd772021-09-16 15:36:23 -0400146 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:
shivasubedic615a892021-08-24 13:17:07 +0100155
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
162logging:
mpriyank47430642023-02-23 10:29:02 +0000163 level: DEBUG
shivasubedic615a892021-08-24 13:17:07 +0100164 cps: DEBUG
165 path: /tmp
166
167readinessCheck:
168 wait_for:
puthuparambil.adityaf5ba7e32021-09-14 10:29:32 +0100169 - cps-core
Renu Kumaribcacd772021-09-16 15:36:23 -0400170
171minReadySeconds: 10
172updateStrategy:
173 type: RollingUpdate
174 maxUnavailable: 0
175 maxSurge: 1
mpriyank9d4d9232023-04-13 16:27:25 +0100176
mpriyank6fc407d2023-04-21 15:24:10 +0100177# Strimzi KafkaUser and Topic config
178kafkaTopic:
179 - name: &ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic ncmp-dmi-cm-avc-subscription-ncmp-dmi-plugin
180 retentionMs: 7200000
181 segmentBytes: 1073741824
182 - name: &dmiNcmpCmAvcSubscriptionTopic dmi-ncmp-cm-avc-subscription
183 retentionMs: 7200000
184 segmentBytes: 1073741824
185 - name: &ncmpAsyncM2MTopic ncmp-async-m2m
186 retentionMs: 7200000
187 segmentBytes: 1073741824
188
mpriyank9d4d9232023-04-13 16:27:25 +0100189kafkaUser:
190 authenticationType: scram-sha-512
191 acls:
192 - name: ncmp-dmi-plugin-group
193 type: group
194 operations: [Read]
mpriyank6fc407d2023-04-21 15:24:10 +0100195 - name: *ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic
mpriyank9d4d9232023-04-13 16:27:25 +0100196 type: topic
197 operations: [Read]
mpriyank6fc407d2023-04-21 15:24:10 +0100198 - name: *dmiNcmpCmAvcSubscriptionTopic
mpriyank9d4d9232023-04-13 16:27:25 +0100199 type: topic
200 operations: [Write]
mpriyank6fc407d2023-04-21 15:24:10 +0100201 - name: *ncmpAsyncM2MTopic
mpriyank9d4d9232023-04-13 16:27:25 +0100202 type: topic
203 operations: [Write]
mpriyank6fc407d2023-04-21 15:24:10 +0100204
205topics:
206 config:
207 app.ncmp.async.topic: *ncmpAsyncM2MTopic
208 app.dmi.avc.subscription-topic: *ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic
209 app.dmi.avc.subscription-response-topic: *dmiNcmpCmAvcSubscriptionTopic