Merge "[SDC] Update SDC images to 1.12.2"
[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   # Global Strimzi kafka config overridden
35   # from parent values.yaml
36   kafka:
37     useKafka: overridden-from-parent-values-yaml
38
39 #################################################################
40 # Application configuration defaults.
41 #################################################################
42 # application image
43 image: onap/sdc-backend-all-plugins:1.12.2
44 backendInitImage: onap/sdc-backend-init:1.12.2
45
46 pullPolicy: Always
47
48 # flag to enable debugging - application support required
49 debugEnabled: false
50
51 #environment file
52 env:
53   name: &env AUTO
54
55 certInitializer:
56   nameOverride: sdc-be-cert-init
57   aafDeployFqi: deployer@people.osaaf.org
58   aafDeployPass: demo123456!
59   fqdn: sdc
60   fqi: sdc@sdc.onap.org
61   public_fqdn: sdc.onap.org
62   cadi_longitude: "0.0"
63   cadi_latitude: "0.0"
64   app_ns: org.osaaf.aaf
65   credsPath: /opt/app/osaaf/local
66   addconfig: true
67   keystoreFile: "org.onap.sdc.p12"
68   truststoreFile: "org.onap.sdc.trust.jks"
69   permission_user: 352070
70   permission_group: 35953
71   aaf_add_config: |
72     echo "cadi_keystore_password_p12=$cadi_keystore_password_p12" > {{ .Values.credsPath }}/mycreds.prop
73     echo "cadi_truststore_password=$cadi_truststore_password" >> {{ .Values.credsPath }}/mycreds.prop
74
75 #################################################################
76 # SDC Config part
77 #################################################################
78 config:
79   javaOptions: "-Xmx1536m -Xms1536m"
80   cassandraSslEnabled: "false"
81
82 kafkaUser:
83   acls:
84     - name: sdc
85       suffix: *env
86       type: group
87       operations: [Read]
88     - name: SDC-DISTR
89       type: topic
90       patternType: prefix
91       operations: [Read, Write]
92
93
94 # default number of instances
95 replicaCount: 1
96
97 nodeSelector: {}
98
99 affinity: {}
100
101 # probe configuration parameters
102 liveness:
103   initialDelaySeconds: 1
104   periodSeconds: 10
105   timeoutSeconds: 180
106   successThreshold: 1
107   failureThreshold: 3
108   # necessary to disable liveness probe when setting breakpoints
109   # in debugger so K8s doesn't restart unresponsive container
110   enabled: true
111
112 readiness:
113   initialDelaySeconds: 1
114   periodSeconds: 10
115   timeoutSeconds: 180
116   successThreshold: 1
117   failureThreshold: 3
118
119 startup:
120   initialDelaySeconds: 10
121   periodSeconds: 10
122   timeoutSeconds: 180
123   successThreshold: 1
124   failureThreshold: 60
125
126 service:
127   type: NodePort
128   name: sdc-be
129   both_tls_and_plain: true
130   internalPort: 8080
131   msb:
132     - port: 8443
133       url: "/sdc/v1"
134       version: "v1"
135       protocol: "REST"
136       visualRange: "1"
137       serviceName: sdc
138       enable_ssl: true
139     - port: 8080
140       url: "/sdc/v1"
141       version: "v1"
142       protocol: "REST"
143       visualRange: "1"
144       serviceName: sdc-deprecated
145   ports:
146     - name: tcp-api
147       port: 8443
148       plain_port: 8080
149       port_protocol: http
150       nodePort: '04'
151
152 ingress:
153   enabled: false
154   service:
155     - baseaddr: "sdc-be-api"
156       name: "sdc-be"
157       port: 8443
158       plain_port: 8080
159   config:
160     ssl: "redirect"
161
162
163 # Resource Limit flavor -By Default using small
164 flavor: small
165 # Segregation for Different environment (Small and Large)
166 resources:
167   small:
168     limits:
169       cpu: 1
170       memory: 2Gi
171     requests:
172       cpu: 100m
173       memory: 1Gi
174   large:
175     limits:
176       cpu: 2
177       memory: 4Gi
178     requests:
179       cpu: 200m
180       memory: 2Gi
181   unlimited: {}
182
183 #Pods Service Account
184 serviceAccount:
185   nameOverride: sdc-be
186   roles:
187     - read
188
189 wait_for_job_container:
190   containers:
191     - '{{ include "common.name" . }}-job'
192
193 #Log configuration
194 log:
195   path: /var/log/onap
196 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'