Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / cps / components / cps-temporal / values.yaml
1 # ============LICENSE_START=======================================================
2 #  Copyright (c) 2021 Bell Canada.
3 # Modifications Copyright © 2022-2023 Nordix Foundation
4 # ================================================================================
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
8
9 #       http://www.apache.org/licenses/LICENSE-2.0
10
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.
16 #
17 #  SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19
20 #################################################################
21 # Global configuration defaults.
22 #################################################################
23 passwordStrengthOverride: basic
24 global:
25   ingress:
26     virtualhost:
27       baseurl: "simpledemo.temporal.onap.org"
28
29 secrets:
30   - uid: pg-user-creds
31     name: &pgUserCredsSecretName '{{ include "common.release" . }}-cps-temporal-pg-user-creds'
32     type: basicAuth
33     externalSecret: '{{ ternary "" (tpl (default "" .Values.timescaledb.config.pgUserExternalSecret) .) (hasSuffix "cps-temporal-pg-user-creds" .Values.timescaledb.config.pgUserExternalSecret) }}'
34     login: '{{ .Values.timescaledb.config.pgUserName }}'
35     password: '{{ .Values.timescaledb.config.pgUserPassword }}'
36     passwordPolicy: generate
37   - uid: app-user-creds
38     type: basicAuth
39     externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}'
40     login: '{{ .Values.config.appUserName }}'
41     password: '{{ .Values.config.appUserPassword }}'
42     passwordPolicy: generate
43
44 image: onap/cps-temporal:1.2.1
45 containerPort: &svc_port 8080
46 managementPort: &mgt_port 8081
47
48 prometheus:
49   enabled: false
50
51 service:
52   type: ClusterIP
53   name: cps-temporal
54   ports:
55     - name: http
56       port: *svc_port
57       targetPort: *svc_port
58     - name: http-management
59       port: *mgt_port
60       targetPort: *mgt_port
61
62 metrics:
63   serviceMonitor:
64     port: http-management
65       ## specify target port if name is not given to the port in the service definition
66       ##
67       # targetPort: 8080
68     path: /manage/prometheus
69     interval: 60s
70     basicAuth:
71       enabled: false
72
73 pullPolicy: IfNotPresent
74 # flag to enable debugging - application support required
75 debugEnabled: false
76 nodeSelector: {}
77 affinity: {}
78 # Resource Limit flavor -By Default using small
79 flavor: small
80 # default number of instances
81 replicaCount: 1
82 # Segregation for Different environment (Small and Large)
83 resources:
84   small:
85     limits:
86       cpu: "2"
87       memory: "2Gi"
88     requests:
89       cpu: "1"
90       memory: "2Gi"
91   large:
92     limits:
93       cpu: "4"
94       memory: "4Gi"
95     requests:
96       cpu: "2"
97       memory: "4Gi"
98   unlimited: {}
99 # probe configuration parameters
100 liveness:
101   initialDelaySeconds: 20
102   periodSeconds: 20
103   # necessary to disable liveness probe when setting breakpoints
104   # in debugger so K8s doesn't restart unresponsive container
105   enabled: true
106   path: /manage/health
107   port: *mgt_port
108
109 readiness:
110   initialDelaySeconds: 15
111   periodSeconds: 15
112   path: /manage/health
113   port: *mgt_port
114
115 ingress:
116   enabled: true
117   service:
118     - baseaddr: "cps-temporal-api"
119       path: "/"
120       name: "cps-temporal"
121       port: *svc_port
122
123 serviceAccount:
124   nameOverride: cps-temporal
125   roles:
126     - read
127
128 securityContext:
129   user_id: 100
130   group_id: 655533
131
132 #################################################################
133 # Application configuration defaults.
134 #################################################################
135
136 config:
137   # REST API basic authentication credentials (passsword is generated if not provided)
138   appUserName: cpstemporal
139   spring:
140     profile: helm
141   #appUserPassword:
142   app:
143     listener:
144       dataUpdatedTopic: &dataUpdatedTopic cps.data-updated-events
145
146 # Any new property can be added in the env by setting in overrides in the format mentioned below
147 # All the added properties must be in "key: value" format instead of yaml.
148 #  additional:
149 #    spring.config.max-size: 200
150 #    spring.config.min-size: 10
151
152 # Strimzi Kafka config
153 kafkaUser:
154   authenticationType: scram-sha-512
155   acls:
156     - name: cps-temporal-group
157       type: group
158       operations: [Read]
159     - name: *dataUpdatedTopic
160       type: topic
161       operations: [Read]
162
163 logging:
164   level: INFO
165   path: /tmp
166
167 timescaledb:
168   nameOverride: cps-temporal-db
169   container:
170     name: cps-temporal-db
171   name: cpstemporaldb
172   service:
173     name: cps-temporal-db
174   persistence:
175     mountSubPath: cps-temporal/data
176     mountInitPath: cps-temporal
177   config:
178     pgUserName: cpstemporaldb
179     pgDatabase: cpstemporaldb
180     pgUserExternalSecret: *pgUserCredsSecretName
181   serviceAccount:
182     nameOverride: cps-temporal-db
183
184 readinessCheck:
185   wait_for:
186     services:
187       - cps-temporal-db
188
189 minReadySeconds: 10
190 updateStrategy:
191   type: RollingUpdate
192   maxUnavailable: 0
193   maxSurge: 1