blob: 1c57a4a51240ddacb6decac71e32fe8bd3b623aa [file] [log] [blame]
puthuparambil.adityaf71e3652021-08-18 13:57:24 +01001# ============LICENSE_START=======================================================
2# Copyright (c) 2021 Bell Canada.
efiacor23361a32022-03-14 13:44:02 +00003# Modifications Copyright © 2022 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
efiacor23361a32022-03-14 13:44:02 +000043 - uid: cps-kafka-user
44 externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}'
45 type: genericKV
46 envs:
47 - name: sasl.jaas.config
48 value: '{{ .Values.config.someConfig }}'
49 policy: generate
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010050
mpriyank26411372022-10-27 12:04:31 +010051image: onap/cps-temporal:1.2.1
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010052containerPort: &svc_port 8080
53managementPort: &mgt_port 8081
54
55prometheus:
Bruno Sakoto45ee4f02021-11-19 19:07:00 -050056 enabled: false
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010057
58service:
59 type: ClusterIP
60 name: cps-temporal
61 ports:
62 - name: http
63 port: *svc_port
64 targetPort: *svc_port
AndrewLambede4d882021-09-16 10:22:29 +010065 - name: http-management
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010066 port: *mgt_port
67 targetPort: *mgt_port
68
69metrics:
70 serviceMonitor:
AndrewLambede4d882021-09-16 10:22:29 +010071 port: http-management
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010072 ## specify target port if name is not given to the port in the service definition
73 ##
74 # targetPort: 8080
75 path: /manage/prometheus
76 interval: 60s
77 basicAuth:
78 enabled: false
79
80pullPolicy: IfNotPresent
81# flag to enable debugging - application support required
82debugEnabled: false
83nodeSelector: {}
84affinity: {}
85# Resource Limit flavor -By Default using small
86flavor: small
87# default number of instances
88replicaCount: 1
89# Segregation for Different environment (Small and Large)
90resources:
91 small:
92 limits:
93 cpu: 2
94 memory: 2Gi
95 requests:
96 cpu: 1
97 memory: 1Gi
98 large:
99 limits:
100 cpu: 4
101 memory: 4Gi
102 requests:
103 cpu: 2
104 memory: 2Gi
105 unlimited: {}
106# probe configuration parameters
107liveness:
108 initialDelaySeconds: 20
109 periodSeconds: 20
110 # necessary to disable liveness probe when setting breakpoints
111 # in debugger so K8s doesn't restart unresponsive container
112 enabled: true
113 path: /manage/health
114 port: *mgt_port
115
116readiness:
117 initialDelaySeconds: 15
118 periodSeconds: 15
119 path: /manage/health
120 port: *mgt_port
121
122ingress:
123 enabled: true
124 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200125 - baseaddr: "cps-temporal-api"
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100126 path: "/"
127 name: "cps-temporal"
128 port: *svc_port
129
130serviceAccount:
131 nameOverride: cps-temporal
132 roles:
133 - read
134
135securityContext:
136 user_id: 100
137 group_id: 655533
138
139#################################################################
140# Application configuration defaults.
141#################################################################
142
143config:
144 # REST API basic authentication credentials (passsword is generated if not provided)
145 appUserName: cpstemporal
146 spring:
147 profile: helm
148 #appUserPassword:
149
efiacor23361a32022-03-14 13:44:02 +0000150# Event consumption (kafka) properties
151 useStrimziKafka: true
152 kafkaBootstrap: strimzi-kafka-bootstrap
153 kafka:
154 consumer:
155 groupId: cps-temporal-group
156 app:
157 listener:
158 dataUpdatedTopic: cps.data-updated-events
159# If targeting a custom kafka cluster, ie useStrimziKakfa: false
160# uncomment below config and target your kafka bootstrap servers,
161# along with any other security config.
162
163# eventConsumption:
164# spring.kafka.bootstrap-servers: <kafka-bootstrap>:9092
165# spring.kafka.security.protocol: PLAINTEXT
166# spring.kafka.consumer.group-id: cps-temporal-group
Bruno Sakoto0673de92021-09-13 17:25:39 -0400167
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100168# Any new property can be added in the env by setting in overrides in the format mentioned below
169# All the added properties must be in "key: value" format instead of yaml.
170# additional:
171# spring.config.max-size: 200
172# spring.config.min-size: 10
173
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100174logging:
175 level: INFO
176 path: /tmp
177
178timescaledb:
179 nameOverride: cps-temporal-db
180 container:
181 name: cps-temporal-db
182 name: cpstemporaldb
183 service:
184 name: cps-temporal-db
185 persistence:
186 mountSubPath: cps-temporal/data
187 mountInitPath: cps-temporal
188 config:
189 pgUserName: cpstemporaldb
190 pgDatabase: cpstemporaldb
191 pgUserExternalSecret: *pgUserCredsSecretName
192 serviceAccount:
193 nameOverride: cps-temporal-db
194
195readinessCheck:
196 wait_for:
197 - cps-temporal-db
198
199minReadySeconds: 10
200updateStrategy:
201 type: RollingUpdate
202 maxUnavailable: 0
203 maxSurge: 1