1 # Copyright (C) 2021 Pantheon.tech, Orange, Bell Canada.
2 # Modifications Copyright (C) 2022 Bell Canada
3 # Modifications Copyright © 2022 Nordix Foundation
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 #################################################################
19 #################################################################
22 name: &pgRootPassSecretName '{{ include "common.release" . }}-cps-core-pg-root-pass'
24 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "cps-core-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
25 password: '{{ .Values.postgres.config.pgRootpassword }}'
28 name: &pgUserCredsSecretName '{{ include "common.release" . }}-cps-core-pg-user-creds'
30 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "cps-core-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
31 login: '{{ .Values.postgres.config.pgUserName }}'
32 password: '{{ .Values.postgres.config.pgUserPassword }}'
33 passwordPolicy: generate
36 externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}'
37 login: '{{ .Values.config.appUserName }}'
38 password: '{{ .Values.config.appUserPassword }}'
39 passwordPolicy: generate
40 - uid: dmi-plugin-user-creds
42 externalSecret: '{{ tpl (default "" .Values.config.dmiPluginUserExternalSecret) . }}'
43 login: '{{ .Values.config.dmiPluginUserName }}'
44 password: '{{ .Values.config.dmiPluginUserPassword }}'
45 passwordPolicy: generate
47 externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}'
50 - name: sasl.jaas.config
51 value: '{{ .Values.config.someConfig }}'
54 #################################################################
55 # Global configuration defaults.
56 #################################################################
58 # bitnami image doesn't support well single quote in password
59 passwordStrengthOverride: basic
63 baseurl: "simpledemo.onap.org"
64 #Service Names of the postgres db to connect to.
65 #Override it to cps-postgres if localCluster is enabled.
71 name2: tcp-pgset-primary
73 name3: tcp-pgset-replica
78 image: onap/cps-and-ncmp:3.0.1
79 containerPort: &svc_port 8080
80 managementPort: &mgt_port 8081
88 - name: http-management
98 ## specify target port if name is not given to the port in the service definition
101 path: /manage/prometheus
107 # flag to enable debugging - application support required
111 # Resource Limit flavor -By Default using small
113 # default number of instances
115 # Segregation for Different environment (Small and Large)
132 # probe configuration parameters
134 initialDelaySeconds: 20
136 # necessary to disable liveness probe when setting breakpoints
137 # in debugger so K8s doesn't restart unresponsive container
143 initialDelaySeconds: 15
157 - baseaddr: "cps-core"
163 nameOverride: cps-core
171 #################################################################
172 # Application configuration defaults.
173 #################################################################
177 # Set it for pre loading xnfdata, else set to null
178 liquibaseLabels: xnf-data-preload
180 # REST API basic authentication credentials (passsword is generated if not provided)
185 dmiPluginUserName: dmiuser
186 # Any new property can be added in the env by setting in overrides in the format mentioned below
187 # All the added properties must be in "key: value" format instead of yaml.
189 # spring.config.max-size: 200
190 # spring.config.min-size: 10
193 useStrimziKafka: true
194 kafkaBootstrap: strimzi-kafka-bootstrap
195 # If targeting a custom kafka cluster, ie useStrimziKakfa: false
196 # uncomment below config and target your kafka bootstrap servers,
197 # along with any other security config.
200 # spring.kafka.bootstrap-servers: <kafka-bootstrap>:9092
201 # spring.kafka.security.protocol: SASL_PLAINTEXT
202 # spring.kafka.properties.sasl.mechanism: PLAIN
203 # spring.kafka.properties.sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username=admin password=admin_secret;
206 notification.data-updated.enabled: true
207 notification.data-updated.topic: cps.data-updated-events
208 notification.data-updated.filters.enabled-dataspaces: ""
209 notification.async.enabled: false
210 notification.async.executor.core-pool-size: 2
211 notification.async.executor.max-pool-size: 1
212 notification.async.executor.queue-capacity: 500
213 notification.async.executor.wait-for-tasks-to-complete-on-shutdown: true
214 notification.async.executor.thread-name-prefix: Async-
220 #################################################################
221 # Postgres overriding defaults in the postgres
222 #################################################################
225 nameOverride: &postgresName cps-core-postgres
229 name2: cps-core-pg-primary
231 name3: cps-core-pg-replica
235 primary: cps-core-pg-primary
236 replica: cps-core-pg-replica
238 mountSubPath: cps-core/data
239 mountInitPath: cps-core
243 pgUserExternalSecret: *pgUserCredsSecretName
244 pgRootPasswordExternalSecret: *pgRootPassSecretName
247 nameOverride: cps-postgres-init
252 pgUserExternalSecret: *pgUserCredsSecretName
254 # pgPrimaryPassword: password
255 # pgUserPassword: password
256 # pgRootPassword: password
260 - '{{ ternary .Values.postgres.service.name "postgres" .Values.global.postgres.localCluster }}'