Merge "[AAI] OOM AAI Rolling Update fixes"
[oom.git] / kubernetes / sdc / components / sdc-be / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T, ZTE
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 #################################################################
18 # Global configuration defaults.
19 #################################################################
20 global:
21   nodePortPrefix: 302
22   aafEnabled: true
23   sdc_cassandra:
24     #This flag allows SDC to instantiate its own cluster, serviceName
25     #should be sdc-cs if this flag is enabled
26     localCluster: false
27     #The cassandra service name to connect to (default: shared cassandra service)
28     serviceName: cassandra
29     #Shared cassandra cluster replicaCount, should be changed if localCluster is enabled
30     #to match with its own cluster replica
31     replicaCount: 3
32     clusterName: cassandra
33     dataCenter: Pod
34   # Strimzi kafka config
35   kafka:
36     useKafka: overridden-from-parent-values-yaml
37     sdcBeKafkaUser: overridden-from-parent-values-yaml
38     topics:
39       sdcDistNotifTopic: overridden-from-parent-values-yaml
40       sdcDistStatusTopic: overridden-from-parent-values-yaml
41
42 #################################################################
43 # Application configuration defaults.
44 #################################################################
45 # application image
46 image: onap/sdc-backend-all-plugins:1.12.0
47 backendInitImage: onap/sdc-backend-init:1.12.0
48
49 pullPolicy: Always
50
51 # flag to enable debugging - application support required
52 debugEnabled: false
53
54 #environment file
55 env:
56   name: AUTO
57
58 certInitializer:
59   nameOverride: sdc-be-cert-init
60   aafDeployFqi: deployer@people.osaaf.org
61   aafDeployPass: demo123456!
62   fqdn: sdc
63   fqi: sdc@sdc.onap.org
64   public_fqdn: sdc.onap.org
65   cadi_longitude: "0.0"
66   cadi_latitude: "0.0"
67   app_ns: org.osaaf.aaf
68   credsPath: /opt/app/osaaf/local
69   addconfig: true
70   keystoreFile: "org.onap.sdc.p12"
71   truststoreFile: "org.onap.sdc.trust.jks"
72   permission_user: 352070
73   permission_group: 35953
74   aaf_add_config: |
75     echo "cadi_keystore_password_p12=$cadi_keystore_password_p12" > {{ .Values.credsPath }}/mycreds.prop
76     echo "cadi_truststore_password=$cadi_truststore_password" >> {{ .Values.credsPath }}/mycreds.prop
77
78 #################################################################
79 # SDC Config part
80 #################################################################
81
82 secrets:
83   - uid: sdc-be-kafka-secret
84     externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}'
85     type: genericKV
86     envs:
87       - name: sasl.jaas.config
88         value: '{{ .Values.config.someConfig }}'
89         policy: generate
90
91 config:
92   javaOptions: "-Xmx1536m -Xms1536m"
93   cassandraSslEnabled: "false"
94   # Strimzi kafka config
95   kafka:
96     saslMech: scram-sha-512
97     securityProtocol: SASL_PLAINTEXT
98     authType: simple
99     topicRetentionMs: 7200000
100     topicSegmentBytes: 1073741824
101     topicConsumer:
102       pattern: SDC-DIST
103       groupId: sdc
104
105 # default number of instances
106 replicaCount: 1
107
108 nodeSelector: {}
109
110 affinity: {}
111
112 # probe configuration parameters
113 liveness:
114   initialDelaySeconds: 1
115   periodSeconds: 10
116   timeoutSeconds: 180
117   successThreshold: 1
118   failureThreshold: 3
119   # necessary to disable liveness probe when setting breakpoints
120   # in debugger so K8s doesn't restart unresponsive container
121   enabled: true
122
123 readiness:
124   initialDelaySeconds: 1
125   periodSeconds: 10
126   timeoutSeconds: 180
127   successThreshold: 1
128   failureThreshold: 3
129
130 startup:
131   initialDelaySeconds: 10
132   periodSeconds: 10
133   timeoutSeconds: 180
134   successThreshold: 1
135   failureThreshold: 60
136
137 service:
138   type: NodePort
139   name: sdc-be
140   both_tls_and_plain: true
141   internalPort: 8080
142   msb:
143     - port: 8443
144       url: "/sdc/v1"
145       version: "v1"
146       protocol: "REST"
147       visualRange: "1"
148       serviceName: sdc
149       enable_ssl: true
150     - port: 8080
151       url: "/sdc/v1"
152       version: "v1"
153       protocol: "REST"
154       visualRange: "1"
155       serviceName: sdc-deprecated
156   ports:
157     - name: tcp-api
158       port: 8443
159       plain_port: 8080
160       port_protocol: http
161       nodePort: '04'
162
163 ingress:
164   enabled: false
165   service:
166     - baseaddr: "sdc-be-api"
167       name: "sdc-be"
168       port: 8443
169       plain_port: 8080
170   config:
171     ssl: "redirect"
172
173
174 # Resource Limit flavor -By Default using small
175 flavor: small
176 # Segregation for Different environment (Small and Large)
177 resources:
178   small:
179     limits:
180       cpu: 1
181       memory: 2Gi
182     requests:
183       cpu: 100m
184       memory: 1Gi
185   large:
186     limits:
187       cpu: 2
188       memory: 4Gi
189     requests:
190       cpu: 200m
191       memory: 2Gi
192   unlimited: {}
193
194 #Pods Service Account
195 serviceAccount:
196   nameOverride: sdc-be
197   roles:
198     - read
199
200 wait_for_job_container:
201   containers:
202     - '{{ include "common.name" . }}-job'
203
204 #Log configuration
205 log:
206   path: /var/log/onap
207 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'