Merge "[STRIMZI] Correction for external Access via Ingress"
[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   sdc_cassandra:
23     #This flag allows SDC to instantiate its own cluster, serviceName
24     #should be sdc-cs if this flag is enabled
25     localCluster: false
26     #The cassandra service name to connect to (default: shared cassandra service)
27     serviceName: cassandra
28     #Shared cassandra cluster replicaCount, should be changed if localCluster is enabled
29     #to match with its own cluster replica
30     replicaCount: 3
31     clusterName: cassandra
32     dataCenter: Pod
33   # Global Strimzi kafka config overridden
34   # from parent values.yaml
35   kafka:
36     useKafka: overridden-from-parent-values-yaml
37
38 #################################################################
39 # Application configuration defaults.
40 #################################################################
41 # application image
42 image: onap/sdc-backend-all-plugins:1.12.2
43 backendInitImage: onap/sdc-backend-init:1.12.2
44
45 pullPolicy: Always
46
47 # flag to enable debugging - application support required
48 debugEnabled: false
49
50 #environment file
51 env:
52   name: &env AUTO
53
54 #################################################################
55 # SDC Config part
56 #################################################################
57 config:
58   javaOptions: "-Xmx1536m -Xms1536m"
59   cassandraSslEnabled: "false"
60
61 kafkaUser:
62   acls:
63     - name: sdc
64       suffix: *env
65       type: group
66       operations: [Read]
67     - name: SDC-DISTR
68       type: topic
69       patternType: prefix
70       operations: [Read, Write]
71
72
73 # default number of instances
74 replicaCount: 1
75
76 nodeSelector: {}
77
78 affinity: {}
79
80 # probe configuration parameters
81 liveness:
82   initialDelaySeconds: 1
83   periodSeconds: 10
84   timeoutSeconds: 180
85   successThreshold: 1
86   failureThreshold: 3
87   # necessary to disable liveness probe when setting breakpoints
88   # in debugger so K8s doesn't restart unresponsive container
89   enabled: true
90
91 readiness:
92   initialDelaySeconds: 1
93   periodSeconds: 10
94   timeoutSeconds: 180
95   successThreshold: 1
96   failureThreshold: 3
97
98 startup:
99   initialDelaySeconds: 10
100   periodSeconds: 10
101   timeoutSeconds: 180
102   successThreshold: 1
103   failureThreshold: 60
104
105 service:
106   type: NodePort
107   name: sdc-be
108   internalPort: 8080
109   ports:
110     - name: tcp-api
111       port: 8080
112       port_protocol: http
113       nodePort: '04'
114   annotations:
115     msb.onap.org/service-info: |
116       {{ if .Values.global.msbEnabled -}}[
117         {
118           "serviceName": "sdc-be",
119           "version": "v1",
120           "url": "/sdc/v1",
121           "path":"/sdc/v1",
122           "protocol": "REST",
123           "visualRange":"1",
124           "port": "{{ .Values.service.internalPort }}",
125         }
126       ]{{ end }}
127
128 ingress:
129   enabled: false
130   service:
131     - baseaddr: "sdc-be-api"
132       name: "sdc-be"
133       port: 8080
134   config:
135     ssl: "redirect"
136
137
138 # Resource Limit flavor -By Default using small
139 flavor: small
140 # Segregation for Different environment (Small and Large)
141 resources:
142   small:
143     limits:
144       cpu: 1
145       memory: 2Gi
146     requests:
147       cpu: 100m
148       memory: 1Gi
149   large:
150     limits:
151       cpu: 2
152       memory: 4Gi
153     requests:
154       cpu: 200m
155       memory: 2Gi
156   unlimited: {}
157
158 #Pods Service Account
159 serviceAccount:
160   nameOverride: sdc-be
161   roles:
162     - read
163
164 wait_for_job_container:
165   containers:
166     - '{{ include "common.name" . }}-job'
167
168 #Log configuration
169 log:
170   path: /var/log/onap
171 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'