[SDC] Update SDC docker versions to 1.10.1
[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   #Service Names of the postgres db to connect to.
56   #Override it to cps-postgres if localCluster is enabled.
57   postgres:
58     localCluster: false
59     service:
60       name: pgset
61       externalPort: 5432
62       name2: tcp-pgset-primary
63       externalPort2: 5432
64       name3: tcp-pgset-replica
65       externalPort3: 5432
66     container:
67       name: postgres
68
69 image: onap/cps-and-ncmp:2.0.1
70 containerPort: &svc_port 8080
71 managementPort: &mgt_port 8081
72
73 service:
74   type: ClusterIP
75   name: cps-core
76   ports:
77     - name: &port http
78       port: *svc_port
79     - name: http-management
80       port: *mgt_port
81       targetPort: *mgt_port
82
83 prometheus:
84   enabled: false
85
86 metrics:
87   serviceMonitor:
88     port: http-management
89       ## specify target port if name is not given to the port in the service definition
90       ##
91     # targetPort: 8080
92     path: /manage/prometheus
93     interval: 60s
94     basicAuth:
95       enabled: false
96
97 pullPolicy: Always
98 # flag to enable debugging - application support required
99 debugEnabled: false
100 nodeSelector: {}
101 affinity: {}
102 # Resource Limit flavor -By Default using small
103 flavor: small
104 # default number of instances
105 replicaCount: 1
106 # Segregation for Different environment (Small and Large)
107 resources:
108   small:
109     limits:
110       cpu: 2
111       memory: 2Gi
112     requests:
113       cpu: 1
114       memory: 1Gi
115   large:
116     limits:
117       cpu: 4
118       memory: 4Gi
119     requests:
120       cpu: 2
121       memory: 2Gi
122   unlimited: {}
123 # probe configuration parameters
124 liveness:
125   initialDelaySeconds: 20
126   periodSeconds: 20
127   # necessary to disable liveness probe when setting breakpoints
128   # in debugger so K8s doesn't restart unresponsive container
129   enabled: true
130   path: /manage/health
131   port: *mgt_port
132
133 readiness:
134   initialDelaySeconds: 15
135   periodSeconds: 15
136   path: /manage/health
137   port: *mgt_port
138
139 ingress:
140   enabled: true
141   service:
142     - baseaddr: "cps-core"
143       path: "/"
144       name: "cps-core"
145       port: *svc_port
146
147 serviceAccount:
148   nameOverride: cps-core
149   roles:
150     - read
151
152 securityContext:
153   user_id: 100
154   group_id: 655533
155
156 #################################################################
157 # Application configuration defaults.
158 #################################################################
159
160 config:
161
162   # Set it for pre loading xnfdata, else set to null
163   liquibaseLabels: xnf-data-preload
164
165   # REST API basic authentication credentials (passsword is generated if not provided)
166   appUserName: cpsuser
167   spring:
168     profile: helm
169   #appUserPassword:
170   dmiPluginUserName: dmiuser
171 # Any new property can be added in the env by setting in overrides in the format mentioned below
172 # All the added properties must be in "key: value" format insead of yaml.
173 #  additional:
174 #    spring.config.max-size: 200
175 #    spring.config.min-size: 10
176
177   eventPublisher:
178     spring.kafka.bootstrap-servers: message-router-kafka:9092
179     spring.kafka.security.protocol: SASL_PLAINTEXT
180     spring.kafka.properties.sasl.mechanism: PLAIN
181     spring.kafka.properties.sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username=admin password=admin_secret;
182     spring.kafka.producer.client-id: cps-core
183
184   additional:
185     notification.data-updated.enabled: true
186     notification.data-updated.topic: cps.data-updated-events
187     notification.data-updated.filters.enabled-dataspaces: ""
188     notification.async.enabled: false
189     notification.async.executor.core-pool-size: 2
190     notification.async.executor.max-pool-size: 1
191     notification.async.executor.queue-capacity: 500
192     notification.async.executor.wait-for-tasks-to-complete-on-shutdown: true
193     notification.async.executor.thread-name-prefix: Async-
194
195 logging:
196   level: INFO
197   path: /tmp
198
199 #################################################################
200 # Postgres overriding defaults in the postgres
201 #################################################################
202 postgres:
203   nameOverride: &postgresName cps-core-postgres
204   service:
205     name: *postgresName
206     externalPort: 5432
207     name2: cps-core-pg-primary
208     externalPort2: 5432
209     name3: cps-core-pg-replica
210     externalPort3: 5432
211   container:
212     name:
213       primary: cps-core-pg-primary
214       replica: cps-core-pg-replica
215   persistence:
216     mountSubPath: cps-core/data
217     mountInitPath: cps-core
218   config:
219     pgUserName: cps
220     pgDatabase: cpsdb
221     pgUserExternalSecret: *pgUserCredsSecretName
222     pgRootPasswordExternalSecret: *pgRootPassSecretName
223
224 postgres-init:
225   nameOverride: cps-postgres-init
226   config:
227     pgUserName: cps
228     pgDatabase: cpsdb
229     pgDataPath: data
230     pgUserExternalSecret: *pgUserCredsSecretName
231
232     # pgPrimaryPassword: password
233     # pgUserPassword: password
234     # pgRootPassword: password
235
236 readinessCheck:
237   wait_for:
238     - '{{ ternary .Values.postgres.service.name "postgres" .Values.global.postgres.localCluster }}'
239
240 minReadySeconds: 10
241 updateStrategy:
242   type: RollingUpdate
243   maxUnavailable: 0
244   maxSurge: 1