blob: c35519b5fcfbe5b6f8687465780136a70381387d [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
mpriyank26411372022-10-27 12:04:31 +010050image: onap/ncmp-dmi-plugin:1.2.2
shivasubedic615a892021-08-24 13:17:07 +010051containerPort: &svc_port 8080
52managementPort: &mgt_port 8081
53
54prometheus:
Bruno Sakoto45ee4f02021-11-19 19:07:00 -050055 enabled: false
shivasubedic615a892021-08-24 13:17:07 +010056
57service:
58 type: ClusterIP
Renu Kumaribcacd772021-09-16 15:36:23 -040059 name: &svc_name ncmp-dmi-plugin
shivasubedic615a892021-08-24 13:17:07 +010060 ports:
61 - name: &port http
62 port: *svc_port
AndrewLambede4d882021-09-16 10:22:29 +010063 - name: http-management
shivasubedic615a892021-08-24 13:17:07 +010064 port: *mgt_port
65 targetPort: *mgt_port
66
Renu Kumaribcacd772021-09-16 15:36:23 -040067metrics:
68 serviceMonitor:
AndrewLambede4d882021-09-16 10:22:29 +010069 port: http-management
Renu Kumaribcacd772021-09-16 15:36:23 -040070 ## specify target port if name is not given to the port in the service definition
71 ##
72 # targetPort: 8080
73 path: /manage/prometheus
74 interval: 60s
75 basicAuth:
76 enabled: false
77
shivasubedic615a892021-08-24 13:17:07 +010078pullPolicy: IfNotPresent
79# flag to enable debugging - application support required
80debugEnabled: false
81nodeSelector: {}
82affinity: {}
83# Resource Limit flavor -By Default using small
84flavor: small
85# default number of instances
86replicaCount: 1
87# Segregation for Different environment (Small and Large)
88resources:
89 small:
90 limits:
91 cpu: 2
92 memory: 2Gi
93 requests:
94 cpu: 1
95 memory: 1Gi
96 large:
97 limits:
98 cpu: 4
99 memory: 4Gi
100 requests:
101 cpu: 2
102 memory: 2Gi
103 unlimited: {}
104# probe configuration parameters
105liveness:
106 initialDelaySeconds: 20
107 periodSeconds: 20
108 # necessary to disable liveness probe when setting breakpoints
109 # in debugger so K8s doesn't restart unresponsive container
110 enabled: true
111 path: /manage/health
112 port: *mgt_port
113
114readiness:
115 initialDelaySeconds: 15
116 periodSeconds: 15
117 path: /manage/health
118 port: *mgt_port
119
120ingress:
121 enabled: true
122 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200123 - baseaddr: "cps-ncmp-dmi-plugin-api"
shivasubedic615a892021-08-24 13:17:07 +0100124 path: "/"
Renu Kumaribcacd772021-09-16 15:36:23 -0400125 name: *svc_name
shivasubedic615a892021-08-24 13:17:07 +0100126 port: *svc_port
127
128serviceAccount:
129 nameOverride: ncmp-dmi-plugin
130 roles:
131 - read
132
133securityContext:
134 user_id: 100
135 group_id: 655533
136
137#################################################################
138# Application configuration defaults.
139#################################################################
140
141config:
142
143 # REST API basic authentication credentials (passsword is generated if not provided)
144 appUserName: ncmpuser
Renu Kumaribcacd772021-09-16 15:36:23 -0400145 #appUserPassword:
shivasubedic615a892021-08-24 13:17:07 +0100146 spring:
147 profile: helm
shivasubedic615a892021-08-24 13:17:07 +0100148
DylanB95EST3b39ac82021-10-13 15:23:20 +0100149 dmiServiceUrl: http://*svc_name:*svc_port
Renu Kumaribcacd772021-09-16 15:36:23 -0400150 sdnc:
151 url: http://sdnc:8181
152 username: admin
153 password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
154 topologyId: topology-netconf
155 cpsCore:
156 url: http://cps-core:8080
157 username: cpsuser
158 #password:
shivasubedic615a892021-08-24 13:17:07 +0100159
160# Any new property can be added in the env by setting in overrides in the format mentioned below
161# All the added properties must be in "key: value" format insead of yaml.
162# additional:
163# spring.config.max-size: 200
164# spring.config.min-size: 10
165
166logging:
167 level: INFO
168 cps: DEBUG
169 path: /tmp
170
171readinessCheck:
172 wait_for:
puthuparambil.adityaf5ba7e32021-09-14 10:29:32 +0100173 - cps-core
Renu Kumaribcacd772021-09-16 15:36:23 -0400174
175minReadySeconds: 10
176updateStrategy:
177 type: RollingUpdate
178 maxUnavailable: 0
179 maxSurge: 1