blob: 298431afe8785d83917349f57f35986a9c864b46 [file] [log] [blame]
puthuparambil.adityaf71e3652021-08-18 13:57:24 +01001# ============LICENSE_START=======================================================
2# Copyright (c) 2021 Bell Canada.
efiacor9f2a0a02023-02-20 17:05:30 +00003# Modifications Copyright © 2022-2023 Nordix Foundation
puthuparambil.adityaf71e3652021-08-18 13:57:24 +01004# ================================================================================
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#################################################################
23passwordStrengthOverride: basic
24global:
25 ingress:
26 virtualhost:
27 baseurl: "simpledemo.temporal.onap.org"
28
29secrets:
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
mpriyank26411372022-10-27 12:04:31 +010044image: onap/cps-temporal:1.2.1
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010045containerPort: &svc_port 8080
46managementPort: &mgt_port 8081
47
48prometheus:
Bruno Sakoto45ee4f02021-11-19 19:07:00 -050049 enabled: false
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010050
51service:
52 type: ClusterIP
53 name: cps-temporal
54 ports:
55 - name: http
56 port: *svc_port
57 targetPort: *svc_port
AndrewLambede4d882021-09-16 10:22:29 +010058 - name: http-management
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010059 port: *mgt_port
60 targetPort: *mgt_port
61
62metrics:
63 serviceMonitor:
AndrewLambede4d882021-09-16 10:22:29 +010064 port: http-management
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010065 ## 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
73pullPolicy: IfNotPresent
74# flag to enable debugging - application support required
75debugEnabled: false
76nodeSelector: {}
77affinity: {}
78# Resource Limit flavor -By Default using small
79flavor: small
80# default number of instances
81replicaCount: 1
82# Segregation for Different environment (Small and Large)
83resources:
84 small:
85 limits:
86 cpu: 2
87 memory: 2Gi
88 requests:
89 cpu: 1
90 memory: 1Gi
91 large:
92 limits:
93 cpu: 4
94 memory: 4Gi
95 requests:
96 cpu: 2
97 memory: 2Gi
98 unlimited: {}
99# probe configuration parameters
100liveness:
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
109readiness:
110 initialDelaySeconds: 15
111 periodSeconds: 15
112 path: /manage/health
113 port: *mgt_port
114
115ingress:
116 enabled: true
117 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200118 - baseaddr: "cps-temporal-api"
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100119 path: "/"
120 name: "cps-temporal"
121 port: *svc_port
122
123serviceAccount:
124 nameOverride: cps-temporal
125 roles:
126 - read
127
128securityContext:
129 user_id: 100
130 group_id: 655533
131
132#################################################################
133# Application configuration defaults.
134#################################################################
135
136config:
137 # REST API basic authentication credentials (passsword is generated if not provided)
138 appUserName: cpstemporal
139 spring:
140 profile: helm
141 #appUserPassword:
efiacor23361a32022-03-14 13:44:02 +0000142 app:
143 listener:
efiacor9f2a0a02023-02-20 17:05:30 +0000144 dataUpdatedTopic: &dataUpdatedTopic cps.data-updated-events
Bruno Sakoto0673de92021-09-13 17:25:39 -0400145
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100146# 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
efiacor9f2a0a02023-02-20 17:05:30 +0000152# Strimzi Kafka config
153kafkaUser:
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
163kafkaTopic:
164 - name: *dataUpdatedTopic
165 # default values below can be overridden
166 retentionMs: 7200000
167 segmentBytes: 1073741824
168
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100169logging:
170 level: INFO
171 path: /tmp
172
173timescaledb:
174 nameOverride: cps-temporal-db
175 container:
176 name: cps-temporal-db
177 name: cpstemporaldb
178 service:
179 name: cps-temporal-db
180 persistence:
181 mountSubPath: cps-temporal/data
182 mountInitPath: cps-temporal
183 config:
184 pgUserName: cpstemporaldb
185 pgDatabase: cpstemporaldb
186 pgUserExternalSecret: *pgUserCredsSecretName
187 serviceAccount:
188 nameOverride: cps-temporal-db
189
190readinessCheck:
191 wait_for:
192 - cps-temporal-db
193
194minReadySeconds: 10
195updateStrategy:
196 type: RollingUpdate
197 maxUnavailable: 0
198 maxSurge: 1