blob: 8b3f16b64c6333e198a403271ae46335b689e723 [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:
Bruno Sakoto45ee4f02021-11-19 19:07:00 -050048 enabled: false
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010049
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:
AndrewLambede4d882021-09-16 10:22:29 +010063 port: http-management
puthuparambil.adityaf71e3652021-08-18 13:57:24 +010064 ## specify target port if name is not given to the port in the service definition
65 ##
66 # targetPort: 8080
67 path: /manage/prometheus
68 interval: 60s
69 basicAuth:
70 enabled: false
71
72pullPolicy: IfNotPresent
73# flag to enable debugging - application support required
74debugEnabled: false
75nodeSelector: {}
76affinity: {}
77# Resource Limit flavor -By Default using small
78flavor: small
79# default number of instances
80replicaCount: 1
81# Segregation for Different environment (Small and Large)
82resources:
83 small:
84 limits:
85 cpu: 2
86 memory: 2Gi
87 requests:
88 cpu: 1
89 memory: 1Gi
90 large:
91 limits:
92 cpu: 4
93 memory: 4Gi
94 requests:
95 cpu: 2
96 memory: 2Gi
97 unlimited: {}
98# probe configuration parameters
99liveness:
100 initialDelaySeconds: 20
101 periodSeconds: 20
102 # necessary to disable liveness probe when setting breakpoints
103 # in debugger so K8s doesn't restart unresponsive container
104 enabled: true
105 path: /manage/health
106 port: *mgt_port
107
108readiness:
109 initialDelaySeconds: 15
110 periodSeconds: 15
111 path: /manage/health
112 port: *mgt_port
113
114ingress:
115 enabled: true
116 service:
117 - baseaddr: "cps-temporal"
118 path: "/"
119 name: "cps-temporal"
120 port: *svc_port
121
122serviceAccount:
123 nameOverride: cps-temporal
124 roles:
125 - read
126
127securityContext:
128 user_id: 100
129 group_id: 655533
130
131#################################################################
132# Application configuration defaults.
133#################################################################
134
135config:
136 # REST API basic authentication credentials (passsword is generated if not provided)
137 appUserName: cpstemporal
138 spring:
139 profile: helm
140 #appUserPassword:
141
Bruno Sakoto0673de92021-09-13 17:25:39 -0400142 # Event consumption (kafka) properties
143 # All Kafka properties must be in "key: value" format instead of yaml.
144 eventConsumption:
145 spring.kafka.bootstrap-servers: message-router-kafka:9092
146 spring.kafka.security.protocol: PLAINTEXT
147 spring.kafka.consumer.group-id: cps-temporal-group
148 app.listener.data-updated.topic: cps.data-updated-events
149
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100150# Any new property can be added in the env by setting in overrides in the format mentioned below
151# All the added properties must be in "key: value" format instead of yaml.
152# additional:
153# spring.config.max-size: 200
154# spring.config.min-size: 10
155
puthuparambil.adityaf71e3652021-08-18 13:57:24 +0100156logging:
157 level: INFO
158 path: /tmp
159
160timescaledb:
161 nameOverride: cps-temporal-db
162 container:
163 name: cps-temporal-db
164 name: cpstemporaldb
165 service:
166 name: cps-temporal-db
167 persistence:
168 mountSubPath: cps-temporal/data
169 mountInitPath: cps-temporal
170 config:
171 pgUserName: cpstemporaldb
172 pgDatabase: cpstemporaldb
173 pgUserExternalSecret: *pgUserCredsSecretName
174 serviceAccount:
175 nameOverride: cps-temporal-db
176
177readinessCheck:
178 wait_for:
179 - cps-temporal-db
180
181minReadySeconds: 10
182updateStrategy:
183 type: RollingUpdate
184 maxUnavailable: 0
185 maxSurge: 1