blob: 6eaeb3555371c8753bf84b380952146cf0088fd5 [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:
vladimir turokdb8167b2023-09-20 11:09:21 +020086 cpu: 2
vladimir turok7a34dfc2023-07-26 12:17:31 +020087 memory: 2Gi
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010088 requests:
89 cpu: 1
vladimir turok7a34dfc2023-07-26 12:17:31 +020090 memory: 2Gi
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010091 large:
92 limits:
vladimir turokdb8167b2023-09-20 11:09:21 +020093 cpu: 4
vladimir turok7a34dfc2023-07-26 12:17:31 +020094 memory: 4Gi
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010095 requests:
96 cpu: 2
vladimir turok7a34dfc2023-07-26 12:17:31 +020097 memory: 4Gi
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010098 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
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100163logging:
164 level: INFO
165 path: /tmp
166
167timescaledb:
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
184readinessCheck:
185 wait_for:
186 - cps-temporal-db
187
188minReadySeconds: 10
189updateStrategy:
190 type: RollingUpdate
191 maxUnavailable: 0
192 maxSurge: 1