Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / cps / components / cps-temporal / values.yaml
1 # ============LICENSE_START=======================================================
2 #  Copyright (c) 2021 Bell Canada.
3 # Modifications Copyright © 2022 Nordix Foundation
4 # ================================================================================
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 #################################################################
23 passwordStrengthOverride: basic
24 global:
25   ingress:
26     virtualhost:
27       baseurl: "simpledemo.temporal.onap.org"
28
29 secrets:
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   - 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
50
51 image: onap/cps-temporal:1.1.0
52 containerPort: &svc_port 8080
53 managementPort: &mgt_port 8081
54
55 prometheus:
56   enabled: false
57
58 service:
59   type: ClusterIP
60   name: cps-temporal
61   ports:
62     - name: http
63       port: *svc_port
64       targetPort: *svc_port
65     - name: http-management
66       port: *mgt_port
67       targetPort: *mgt_port
68
69 metrics:
70   serviceMonitor:
71     port: http-management
72       ## 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
80 pullPolicy: IfNotPresent
81 # flag to enable debugging - application support required
82 debugEnabled: false
83 nodeSelector: {}
84 affinity: {}
85 # Resource Limit flavor -By Default using small
86 flavor: small
87 # default number of instances
88 replicaCount: 1
89 # Segregation for Different environment (Small and Large)
90 resources:
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
107 liveness:
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
116 readiness:
117   initialDelaySeconds: 15
118   periodSeconds: 15
119   path: /manage/health
120   port: *mgt_port
121
122 ingress:
123   enabled: true
124   service:
125     - baseaddr: "cps-temporal"
126       path: "/"
127       name: "cps-temporal"
128       port: *svc_port
129
130 serviceAccount:
131   nameOverride: cps-temporal
132   roles:
133     - read
134
135 securityContext:
136   user_id: 100
137   group_id: 655533
138
139 #################################################################
140 # Application configuration defaults.
141 #################################################################
142
143 config:
144   # REST API basic authentication credentials (passsword is generated if not provided)
145   appUserName: cpstemporal
146   spring:
147     profile: helm
148   #appUserPassword:
149
150 # 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
167
168 # 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
174 logging:
175   level: INFO
176   path: /tmp
177
178 timescaledb:
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
195 readinessCheck:
196   wait_for:
197     - cps-temporal-db
198
199 minReadySeconds: 10
200 updateStrategy:
201   type: RollingUpdate
202   maxUnavailable: 0
203   maxSurge: 1