Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[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.1.0
51 containerPort: &svc_port 8080
52 managementPort: &mgt_port 8081
53
54 prometheus:
55   enabled: false
56
57 service:
58   type: ClusterIP
59   name: &svc_name ncmp-dmi-plugin
60   ports:
61     - name: &port http
62       port: *svc_port
63     - name: http-management
64       port: *mgt_port
65       targetPort: *mgt_port
66
67 metrics:
68   serviceMonitor:
69     port: http-management
70       ## 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
78 pullPolicy: IfNotPresent
79 # flag to enable debugging - application support required
80 debugEnabled: false
81 nodeSelector: {}
82 affinity: {}
83 # Resource Limit flavor -By Default using small
84 flavor: small
85 # default number of instances
86 replicaCount: 1
87 # Segregation for Different environment (Small and Large)
88 resources:
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
105 liveness:
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
114 readiness:
115   initialDelaySeconds: 15
116   periodSeconds: 15
117   path: /manage/health
118   port: *mgt_port
119
120 ingress:
121   enabled: true
122   service:
123     - baseaddr: "ncmp-dmi-plugin"
124       path: "/"
125       name: *svc_name
126       port: *svc_port
127
128 serviceAccount:
129   nameOverride: ncmp-dmi-plugin
130   roles:
131     - read
132
133 securityContext:
134   user_id: 100
135   group_id: 655533
136
137 #################################################################
138 # Application configuration defaults.
139 #################################################################
140
141 config:
142
143   # REST API basic authentication credentials (passsword is generated if not provided)
144   appUserName: ncmpuser
145   #appUserPassword:
146   spring:
147     profile: helm
148
149   dmiServiceUrl: http://*svc_name:*svc_port
150   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:
159
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
166 logging:
167   level: INFO
168   cps: DEBUG
169   path: /tmp
170
171 readinessCheck:
172   wait_for:
173     - cps-core
174
175 minReadySeconds: 10
176 updateStrategy:
177   type: RollingUpdate
178   maxUnavailable: 0
179   maxSurge: 1