[CPS] Service Mesh Compliance for CPS
[oom.git] / kubernetes / cps / components / cps-temporal / values.yaml
1 # ============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 #################################################################
22 passwordStrengthOverride: basic
23 global:
24   ingress:
25     virtualhost:
26       baseurl: "simpledemo.temporal.onap.org"
27
28 secrets:
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
43 image: onap/cps-temporal:1.0.0
44 containerPort: &svc_port 8080
45 managementPort: &mgt_port 8081
46
47 prometheus:
48   enabled: true
49
50 service:
51   type: ClusterIP
52   name: cps-temporal
53   ports:
54     - name: http
55       port: *svc_port
56       targetPort: *svc_port
57     - name: http-management
58       port: *mgt_port
59       targetPort: *mgt_port
60
61 metrics:
62   serviceMonitor:
63     enabled: true
64     port: http-management
65       ## 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
73 pullPolicy: IfNotPresent
74 # flag to enable debugging - application support required
75 debugEnabled: false
76 nodeSelector: {}
77 affinity: {}
78 # Resource Limit flavor -By Default using small
79 flavor: small
80 # default number of instances
81 replicaCount: 1
82 # Segregation for Different environment (Small and Large)
83 resources:
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
100 liveness:
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
109 readiness:
110   initialDelaySeconds: 15
111   periodSeconds: 15
112   path: /manage/health
113   port: *mgt_port
114
115 ingress:
116   enabled: true
117   service:
118     - baseaddr: "cps-temporal"
119       path: "/"
120       name: "cps-temporal"
121       port: *svc_port
122
123 serviceAccount:
124   nameOverride: cps-temporal
125   roles:
126     - read
127
128 securityContext:
129   user_id: 100
130   group_id: 655533
131
132 #################################################################
133 # Application configuration defaults.
134 #################################################################
135
136 config:
137   # REST API basic authentication credentials (passsword is generated if not provided)
138   appUserName: cpstemporal
139   spring:
140     profile: helm
141   #appUserPassword:
142
143   # 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
151 # 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
157 logging:
158   level: INFO
159   path: /tmp
160
161 timescaledb:
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
178 readinessCheck:
179   wait_for:
180     - cps-temporal-db
181
182 minReadySeconds: 10
183 updateStrategy:
184   type: RollingUpdate
185   maxUnavailable: 0
186   maxSurge: 1