Merge "[CPS] Rolling update and prometheus changes"
[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: 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.sdncUser }}'
33     password: '{{ .Values.config.sdncPassword }}'
34     passwordPolicy: required
35   - uid: core-creds
36     type: basicAuth
37     externalSecret: '{{ tpl (default "" .Values.config.coreCredsExternalSecret) . }}'
38     login: '{{ .Values.config.coreUser }}'
39     password: '{{ .Values.config.corePassword }}'
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.0.0
51 containerPort: &svc_port 8080
52 managementPort: &mgt_port 8081
53
54 prometheus:
55   enabled: true
56   interval: 60s
57
58 service:
59   type: ClusterIP
60   name: ncmp-dmi-plugin
61   ports:
62     - name: &port http
63       port: *svc_port
64     - name: management
65       port: *mgt_port
66       targetPort: *mgt_port
67
68 pullPolicy: IfNotPresent
69 # flag to enable debugging - application support required
70 debugEnabled: false
71 nodeSelector: {}
72 affinity: {}
73 # Resource Limit flavor -By Default using small
74 flavor: small
75 # default number of instances
76 replicaCount: 1
77 # Segregation for Different environment (Small and Large)
78 resources:
79   small:
80     limits:
81       cpu: 2
82       memory: 2Gi
83     requests:
84       cpu: 1
85       memory: 1Gi
86   large:
87     limits:
88       cpu: 4
89       memory: 4Gi
90     requests:
91       cpu: 2
92       memory: 2Gi
93   unlimited: {}
94 # probe configuration parameters
95 liveness:
96   initialDelaySeconds: 20
97   periodSeconds: 20
98   # necessary to disable liveness probe when setting breakpoints
99   # in debugger so K8s doesn't restart unresponsive container
100   enabled: true
101   path: /manage/health
102   port: *mgt_port
103
104 readiness:
105   initialDelaySeconds: 15
106   periodSeconds: 15
107   path: /manage/health
108   port: *mgt_port
109
110 ingress:
111   enabled: true
112   service:
113     - baseaddr: "ncmp-dmi-plugin"
114       path: "/"
115       name: "ncmp-dmi-plugin"
116       port: *svc_port
117
118 serviceAccount:
119   nameOverride: ncmp-dmi-plugin
120   roles:
121     - read
122
123 securityContext:
124   user_id: 100
125   group_id: 655533
126
127 #################################################################
128 # Application configuration defaults.
129 #################################################################
130
131 config:
132
133   # REST API basic authentication credentials (passsword is generated if not provided)
134   appUserName: ncmpuser
135   spring:
136     profile: helm
137   #appUserPassword:
138
139   sdncUser: admin
140   sdncPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
141
142   coreUser: cpsuser
143
144 # Any new property can be added in the env by setting in overrides in the format mentioned below
145 # All the added properties must be in "key: value" format insead of yaml.
146 #  additional:
147 #    spring.config.max-size: 200
148 #    spring.config.min-size: 10
149
150 logging:
151   level: INFO
152   cps: DEBUG
153   path: /tmp
154
155 readinessCheck:
156   wait_for:
157     - cps-core