[COMMON] Remove hostPath entries
[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.13.6
43 backendInitImage: onap/sdc-backend-init:1.13.6
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 serviceMesh:
138   authorizationPolicy:
139     authorizedPrincipals:
140       - serviceAccount: consul-read
141       - serviceAccount: consul-server-read
142       - serviceAccount: modeling-etsicatalog-read
143       - serviceAccount: nbi-read
144       - serviceAccount: oof-has-read
145       - serviceAccount: portal-db-read
146       - serviceAccount: so-cnfm-lcm-read
147       - serviceAccount: so-etsi-sol003-adapter-read
148       - serviceAccount: so-read
149       - serviceAccount: istio-ingress
150         namespace: istio-ingress
151
152 # Resource Limit flavor -By Default using small
153 flavor: small
154 # Segregation for Different environment (Small and Large)
155 resources:
156   small:
157     limits:
158       cpu: "1"
159       memory: "3Gi"
160     requests:
161       cpu: "0.5"
162       memory: "3Gi"
163   large:
164     limits:
165       cpu: "2"
166       memory: "6Gi"
167     requests:
168       cpu: "1"
169       memory: "6Gi"
170   unlimited: {}
171
172 #Pods Service Account
173 serviceAccount:
174   nameOverride: sdc-be
175   roles:
176     - read
177
178 wait_for_job_container:
179   containers:
180     - '{{ include "common.name" . }}-job'
181
182 #Log configuration
183 log:
184   path: /var/log/onap
185 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'