Merge "[SO] Add TLS configuration for SO API Ingress"
[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: management
58       port: *mgt_port
59       targetPort: *mgt_port
60
61 metrics:
62   serviceMonitor:
63     enabled: true
64     port: 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 # Any new property can be added in the env by setting in overrides in the format mentioned below
144 # All the added properties must be in "key: value" format instead of yaml.
145 #  additional:
146 #    spring.config.max-size: 200
147 #    spring.config.min-size: 10
148
149   kafka:
150     service: message-router-kafka
151     port: 9092
152     listenerTopic: cps.cfg-state-events
153     consumerGroupId: cps-temporal-group
154     protocol: PLAINTEXT
155
156 logging:
157   level: INFO
158   path: /tmp
159
160 timescaledb:
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
177 readinessCheck:
178   wait_for:
179     - cps-temporal-db
180
181 minReadySeconds: 10
182 updateStrategy:
183   type: RollingUpdate
184   maxUnavailable: 0
185   maxSurge: 1