blob: f8311697f58d72d25e1773408c28b3fc9ef1e2a6 [file] [log] [blame]
puthuparambil.adityaf71e3652021-08-18 13:57:24 +01001# ============LICENSE_START=======================================================
2# Copyright (c) 2021 Bell Canada.
3# ================================================================================
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7
8# http://www.apache.org/licenses/LICENSE-2.0
9
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16# SPDX-License-Identifier: Apache-2.0
17# ============LICENSE_END=========================================================
18
19#################################################################
20# Global configuration defaults.
21#################################################################
22passwordStrengthOverride: basic
23global:
24 ingress:
25 virtualhost:
26 baseurl: "simpledemo.temporal.onap.org"
27
28secrets:
29 - uid: pg-user-creds
30 name: &pgUserCredsSecretName '{{ include "common.release" . }}-cps-temporal-pg-user-creds'
31 type: basicAuth
32 externalSecret: '{{ ternary "" (tpl (default "" .Values.timescaledb.config.pgUserExternalSecret) .) (hasSuffix "cps-temporal-pg-user-creds" .Values.timescaledb.config.pgUserExternalSecret) }}'
33 login: '{{ .Values.timescaledb.config.pgUserName }}'
34 password: '{{ .Values.timescaledb.config.pgUserPassword }}'
35 passwordPolicy: generate
36 - uid: app-user-creds
37 type: basicAuth
38 externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}'
39 login: '{{ .Values.config.appUserName }}'
40 password: '{{ .Values.config.appUserPassword }}'
41 passwordPolicy: generate
42
Renu Kumari5f4846f2021-09-14 11:06:07 -040043image: onap/cps-temporal:1.0.0
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010044containerPort: &svc_port 8080
45managementPort: &mgt_port 8081
46
47prometheus:
48 enabled: true
49
50service:
51 type: ClusterIP
52 name: cps-temporal
53 ports:
54 - name: http
55 port: *svc_port
56 targetPort: *svc_port
AndrewLambede4d882021-09-16 10:22:29 +010057 - name: http-management
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010058 port: *mgt_port
59 targetPort: *mgt_port
60
61metrics:
62 serviceMonitor:
63 enabled: true
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:
118 - baseaddr: "cps-temporal"
119 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:
142
Bruno Sakoto0673de92021-09-13 17:25:39 -0400143 # Event consumption (kafka) properties
144 # All Kafka properties must be in "key: value" format instead of yaml.
145 eventConsumption:
146 spring.kafka.bootstrap-servers: message-router-kafka:9092
147 spring.kafka.security.protocol: PLAINTEXT
148 spring.kafka.consumer.group-id: cps-temporal-group
149 app.listener.data-updated.topic: cps.data-updated-events
150
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100151# Any new property can be added in the env by setting in overrides in the format mentioned below
152# All the added properties must be in "key: value" format instead of yaml.
153# additional:
154# spring.config.max-size: 200
155# spring.config.min-size: 10
156
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100157logging:
158 level: INFO
159 path: /tmp
160
161timescaledb:
162 nameOverride: cps-temporal-db
163 container:
164 name: cps-temporal-db
165 name: cpstemporaldb
166 service:
167 name: cps-temporal-db
168 persistence:
169 mountSubPath: cps-temporal/data
170 mountInitPath: cps-temporal
171 config:
172 pgUserName: cpstemporaldb
173 pgDatabase: cpstemporaldb
174 pgUserExternalSecret: *pgUserCredsSecretName
175 serviceAccount:
176 nameOverride: cps-temporal-db
177
178readinessCheck:
179 wait_for:
180 - cps-temporal-db
181
182minReadySeconds: 10
183updateStrategy:
184 type: RollingUpdate
185 maxUnavailable: 0
186 maxSurge: 1