[HOLMES] Bumped the version of holmes-rule-mgmt
[oom.git] / kubernetes / cps / components / cps-core / values.yaml
1 #  Copyright (C) 2021 Pantheon.tech, Orange, Bell Canada.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #################################################################
16 # Secrets.
17 #################################################################
18 secrets:
19   - uid: pg-root-pass
20     name: &pgRootPassSecretName '{{ include "common.release" . }}-cps-core-pg-root-pass'
21     type: password
22     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "cps-core-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
23     password: '{{ .Values.postgres.config.pgRootpassword }}'
24     policy: generate
25   - uid: pg-user-creds
26     name: &pgUserCredsSecretName '{{ include "common.release" . }}-cps-core-pg-user-creds'
27     type: basicAuth
28     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "cps-core-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
29     login: '{{ .Values.postgres.config.pgUserName }}'
30     password: '{{ .Values.postgres.config.pgUserPassword }}'
31     passwordPolicy: generate
32   - uid: app-user-creds
33     type: basicAuth
34     externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}'
35     login: '{{ .Values.config.appUserName }}'
36     password: '{{ .Values.config.appUserPassword }}'
37     passwordPolicy: generate
38   - uid: dmi-plugin-user-creds
39     type: basicAuth
40     externalSecret: '{{ tpl (default "" .Values.config.dmiPluginUserExternalSecret) . }}'
41     login: '{{ .Values.config.dmiPluginUserName }}'
42     password: '{{ .Values.config.dmiPluginUserPassword }}'
43     passwordPolicy: generate
44
45 #################################################################
46 # Global configuration defaults.
47 #################################################################
48
49 # bitnami image doesn't support well single quote in password
50 passwordStrengthOverride: basic
51 global:
52   ingress:
53     virtualhost:
54       baseurl: "simpledemo.onap.org"
55
56 image: onap/cps-and-ncmp:2.0.0
57 containerPort: &svc_port 8080
58 managementPort: &mgt_port 8081
59
60 service:
61   type: ClusterIP
62   name: cps-core
63   ports:
64     - name: &port http
65       port: *svc_port
66     - name: management
67       port: *mgt_port
68       targetPort: *mgt_port
69
70 prometheus:
71   enabled: true
72
73 metrics:
74   serviceMonitor:
75     enabled: true
76     port: management
77       ## specify target port if name is not given to the port in the service definition
78       ##
79     # targetPort: 8080
80     path: /manage/prometheus
81     interval: 60s
82     basicAuth:
83       enabled: false
84
85 pullPolicy: Always
86 # flag to enable debugging - application support required
87 debugEnabled: false
88 nodeSelector: {}
89 affinity: {}
90 # Resource Limit flavor -By Default using small
91 flavor: small
92 # default number of instances
93 replicaCount: 1
94 # Segregation for Different environment (Small and Large)
95 resources:
96   small:
97     limits:
98       cpu: 2
99       memory: 2Gi
100     requests:
101       cpu: 1
102       memory: 1Gi
103   large:
104     limits:
105       cpu: 4
106       memory: 4Gi
107     requests:
108       cpu: 2
109       memory: 2Gi
110   unlimited: {}
111 # probe configuration parameters
112 liveness:
113   initialDelaySeconds: 20
114   periodSeconds: 20
115   # necessary to disable liveness probe when setting breakpoints
116   # in debugger so K8s doesn't restart unresponsive container
117   enabled: true
118   path: /manage/health
119   port: *mgt_port
120
121 readiness:
122   initialDelaySeconds: 15
123   periodSeconds: 15
124   path: /manage/health
125   port: *mgt_port
126
127 ingress:
128   enabled: true
129   service:
130     - baseaddr: "cps-core"
131       path: "/"
132       name: "cps-core"
133       port: *svc_port
134
135 serviceAccount:
136   nameOverride: cps-core
137   roles:
138     - read
139
140 securityContext:
141   user_id: 100
142   group_id: 655533
143
144 #################################################################
145 # Application configuration defaults.
146 #################################################################
147
148 config:
149
150   # Set it for pre loading xnfdata, else set to null
151   liquibaseLabels: xnf-data-preload
152
153   # REST API basic authentication credentials (passsword is generated if not provided)
154   appUserName: cpsuser
155   spring:
156     profile: helm
157   #appUserPassword:
158   dmiPluginUserName: dmiuser
159 # Any new property can be added in the env by setting in overrides in the format mentioned below
160 # All the added properties must be in "key: value" format insead of yaml.
161 #  additional:
162 #    spring.config.max-size: 200
163 #    spring.config.min-size: 10
164
165   eventPublisher:
166     spring.kafka.bootstrap-servers: message-router-kafka:9092
167     spring.kafka.security.protocol: SASL_PLAINTEXT
168     spring.kafka.properties.sasl.mechanism: PLAIN
169     spring.kafka.properties.sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username=admin password=admin_secret;
170     spring.kafka.producer.client-id: cps-core
171
172   additional:
173     notification.data-updated.enabled: true
174     notification.data-updated.topic: cps.data-updated-events
175     notification.data-updated.filters.enabled-dataspaces: ""
176     notification.async.enabled: false
177     notification.async.executor.core-pool-size: 2
178     notification.async.executor.max-pool-size: 1
179     notification.async.executor.queue-capacity: 500
180     notification.async.executor.wait-for-tasks-to-complete-on-shutdown: true
181     notification.async.executor.thread-name-prefix: Async-
182
183 logging:
184   level: INFO
185   path: /tmp
186
187 #################################################################
188 # Postgres overriding defaults in the postgres
189 #################################################################
190 postgres:
191   nameOverride: &postgresName cps-core-postgres
192   service:
193     name: *postgresName
194     name2: cps-core-pg-primary
195     name3: cps-core-pg-replica
196   container:
197     name:
198       primary: cps-core-pg-primary
199       replica: cps-core-pg-replica
200   persistence:
201     mountSubPath: cps-core/data
202     mountInitPath: cps-core
203   config:
204     pgUserName: cps
205     pgDatabase: cpsdb
206     pgUserExternalSecret: *pgUserCredsSecretName
207     pgRootPasswordExternalSecret: *pgRootPassSecretName
208
209 readinessCheck:
210   wait_for:
211     - *postgresName
212
213 minReadySeconds: 10
214 updateStrategy:
215   type: RollingUpdate
216   maxUnavailable: 0
217   maxSurge: 1