blob: a4a56dee8045092ce40d98c659ccd406b4b472cb [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
DylanB95EST3b39ac82021-10-13 15:23:20 +010050image: onap/ncmp-dmi-plugin:1.0.1
shivasubedic615a892021-08-24 13:17:07 +010051containerPort: &svc_port 8080
52managementPort: &mgt_port 8081
53
54prometheus:
55 enabled: true
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:
69 enabled: true
AndrewLambede4d882021-09-16 10:22:29 +010070 port: http-management
Renu Kumaribcacd772021-09-16 15:36:23 -040071 ## specify target port if name is not given to the port in the service definition
72 ##
73 # targetPort: 8080
74 path: /manage/prometheus
75 interval: 60s
76 basicAuth:
77 enabled: false
78
shivasubedic615a892021-08-24 13:17:07 +010079pullPolicy: IfNotPresent
80# flag to enable debugging - application support required
81debugEnabled: false
82nodeSelector: {}
83affinity: {}
84# Resource Limit flavor -By Default using small
85flavor: small
86# default number of instances
87replicaCount: 1
88# Segregation for Different environment (Small and Large)
89resources:
90 small:
91 limits:
92 cpu: 2
93 memory: 2Gi
94 requests:
95 cpu: 1
96 memory: 1Gi
97 large:
98 limits:
99 cpu: 4
100 memory: 4Gi
101 requests:
102 cpu: 2
103 memory: 2Gi
104 unlimited: {}
105# probe configuration parameters
106liveness:
107 initialDelaySeconds: 20
108 periodSeconds: 20
109 # necessary to disable liveness probe when setting breakpoints
110 # in debugger so K8s doesn't restart unresponsive container
111 enabled: true
112 path: /manage/health
113 port: *mgt_port
114
115readiness:
116 initialDelaySeconds: 15
117 periodSeconds: 15
118 path: /manage/health
119 port: *mgt_port
120
121ingress:
122 enabled: true
123 service:
124 - baseaddr: "ncmp-dmi-plugin"
125 path: "/"
Renu Kumaribcacd772021-09-16 15:36:23 -0400126 name: *svc_name
shivasubedic615a892021-08-24 13:17:07 +0100127 port: *svc_port
128
129serviceAccount:
130 nameOverride: ncmp-dmi-plugin
131 roles:
132 - read
133
134securityContext:
135 user_id: 100
136 group_id: 655533
137
138#################################################################
139# Application configuration defaults.
140#################################################################
141
142config:
143
144 # REST API basic authentication credentials (passsword is generated if not provided)
145 appUserName: ncmpuser
Renu Kumaribcacd772021-09-16 15:36:23 -0400146 #appUserPassword:
shivasubedic615a892021-08-24 13:17:07 +0100147 spring:
148 profile: helm
shivasubedic615a892021-08-24 13:17:07 +0100149
DylanB95EST3b39ac82021-10-13 15:23:20 +0100150 dmiServiceUrl: http://*svc_name:*svc_port
Renu Kumaribcacd772021-09-16 15:36:23 -0400151 sdnc:
152 url: http://sdnc:8181
153 username: admin
154 password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
155 topologyId: topology-netconf
156 cpsCore:
157 url: http://cps-core:8080
158 username: cpsuser
159 #password:
shivasubedic615a892021-08-24 13:17:07 +0100160
161# Any new property can be added in the env by setting in overrides in the format mentioned below
162# All the added properties must be in "key: value" format insead of yaml.
163# additional:
164# spring.config.max-size: 200
165# spring.config.min-size: 10
166
167logging:
168 level: INFO
169 cps: DEBUG
170 path: /tmp
171
172readinessCheck:
173 wait_for:
puthuparambil.adityaf5ba7e32021-09-14 10:29:32 +0100174 - cps-core
Renu Kumaribcacd772021-09-16 15:36:23 -0400175
176minReadySeconds: 10
177updateStrategy:
178 type: RollingUpdate
179 maxUnavailable: 0
180 maxSurge: 1