blob: 7f914d4bdfb983fcd0ec9c845202343e761cb2bf [file] [log] [blame]
Mandeep Khindab1f9efe2018-03-28 19:01:55 +00001# Copyright © 2017 Amdocs, Bell Canada
toshrajbhardwajf4fc1c62018-08-06 07:35:14 +00002# Modifications Copyright © 2018 AT&T, ZTE
efiacor3422fe92022-07-12 13:19:53 +01003# Modifications Copyright © 2022 Nordix Foundation
Mandeep Khindab1f9efe2018-03-28 19:01:55 +00004#
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
Mandeep Khindaa1047f42018-03-22 02:12:15 +000017#################################################################
18# Global configuration defaults.
19#################################################################
20global:
21 nodePortPrefix: 302
Andreas Geisslerfd450c42021-12-10 08:36:45 +000022 sdc_cassandra:
ChrisC742a7b22020-09-04 11:29:57 +020023 #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
efiacor2f1c2a22022-11-29 11:39:41 +000033 # Global Strimzi kafka config overridden
34 # from parent values.yaml
efiacor3422fe92022-07-12 13:19:53 +010035 kafka:
36 useKafka: overridden-from-parent-values-yaml
Mandeep Khindaa1047f42018-03-22 02:12:15 +000037
38#################################################################
39# Application configuration defaults.
40#################################################################
41# application image
MichaelMorrisf2833882023-10-11 12:04:52 +010042image: onap/sdc-backend-all-plugins:1.13.6
43backendInitImage: onap/sdc-backend-init:1.13.6
Sylvain Desbureaux0a1eaf32020-11-19 17:56:08 +010044
Mandeep Khindaa1047f42018-03-22 02:12:15 +000045pullPolicy: Always
46
47# flag to enable debugging - application support required
48debugEnabled: false
49
ChrisC742a7b22020-09-04 11:29:57 +020050#environment file
51env:
efiacor2f1c2a22022-11-29 11:39:41 +000052 name: &env AUTO
ChrisC742a7b22020-09-04 11:29:57 +020053
ChrisC742a7b22020-09-04 11:29:57 +020054#################################################################
55# SDC Config part
56#################################################################
Mandeep Khinda403c1c12018-04-19 23:15:43 +000057config:
r.bogacki65cb1ac2019-09-03 09:27:24 +020058 javaOptions: "-Xmx1536m -Xms1536m"
Mandeep Khinda403c1c12018-04-19 23:15:43 +000059 cassandraSslEnabled: "false"
efiacor2f1c2a22022-11-29 11:39:41 +000060
61kafkaUser:
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
Mandeep Khinda403c1c12018-04-19 23:15:43 +000072
Mandeep Khindaa1047f42018-03-22 02:12:15 +000073# default number of instances
74replicaCount: 1
75
76nodeSelector: {}
77
78affinity: {}
79
80# probe configuration parameters
81liveness:
Sylvain Desbureaux8c9416b2021-05-05 11:12:48 +020082 initialDelaySeconds: 1
Mandeep Khindaa1047f42018-03-22 02:12:15 +000083 periodSeconds: 10
othman touijer2b764d02022-01-05 14:40:37 +010084 timeoutSeconds: 180
Sylvain Desbureaux8c9416b2021-05-05 11:12:48 +020085 successThreshold: 1
86 failureThreshold: 3
Mandeep Khindaa1047f42018-03-22 02:12:15 +000087 # necessary to disable liveness probe when setting breakpoints
88 # in debugger so K8s doesn't restart unresponsive container
89 enabled: true
90
91readiness:
Sylvain Desbureaux8c9416b2021-05-05 11:12:48 +020092 initialDelaySeconds: 1
Mandeep Khindaa1047f42018-03-22 02:12:15 +000093 periodSeconds: 10
othman touijer2b764d02022-01-05 14:40:37 +010094 timeoutSeconds: 180
Sylvain Desbureaux8c9416b2021-05-05 11:12:48 +020095 successThreshold: 1
96 failureThreshold: 3
97
98startup:
99 initialDelaySeconds: 10
100 periodSeconds: 10
othman touijer2b764d02022-01-05 14:40:37 +0100101 timeoutSeconds: 180
Sylvain Desbureaux8c9416b2021-05-05 11:12:48 +0200102 successThreshold: 1
103 failureThreshold: 60
Mandeep Khindaa1047f42018-03-22 02:12:15 +0000104
105service:
106 type: NodePort
107 name: sdc-be
Joanna Jeremiczfe52bf52021-04-21 14:31:29 +0200108 internalPort: 8080
gummara72e6de2020-03-12 11:15:56 +0000109 ports:
othman touijer2b764d02022-01-05 14:40:37 +0100110 - name: tcp-api
Andreas Geisslerdd34ead2023-03-20 17:16:45 +0100111 port: 8080
gummara72e6de2020-03-12 11:15:56 +0000112 port_protocol: http
113 nodePort: '04'
Andreas Geisslerdd34ead2023-03-20 17:16:45 +0100114 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 }}
Mandeep Khindaa1047f42018-03-22 02:12:15 +0000127
128ingress:
129 enabled: false
Lucjan Bryndzaa0abab12019-11-28 11:00:50 +0100130 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200131 - baseaddr: "sdc-be-api"
Lucjan Bryndzaa0abab12019-11-28 11:00:50 +0100132 name: "sdc-be"
Andreas Geisslerdd34ead2023-03-20 17:16:45 +0100133 port: 8080
Lucjan Bryndzaa0abab12019-11-28 11:00:50 +0100134 config:
gummara72e6de2020-03-12 11:15:56 +0000135 ssl: "redirect"
Lucjan Bryndzaa0abab12019-11-28 11:00:50 +0100136
AndrewLambb304a322023-04-11 17:05:54 +0100137serviceMesh:
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
Mandeep Khindaa1047f42018-03-22 02:12:15 +0000151
Mukula93baa82018-09-19 15:56:58 +0000152# Resource Limit flavor -By Default using small
153flavor: small
154# Segregation for Different environment (Small and Large)
155resources:
156 small:
157 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100158 cpu: "1"
159 memory: "3Gi"
Mukula93baa82018-09-19 15:56:58 +0000160 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100161 cpu: "0.5"
162 memory: "3Gi"
Mukula93baa82018-09-19 15:56:58 +0000163 large:
164 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100165 cpu: "2"
166 memory: "6Gi"
Mukula93baa82018-09-19 15:56:58 +0000167 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100168 cpu: "1"
169 memory: "6Gi"
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000170 unlimited: {}
farida azmy1383b4c2021-04-06 12:33:31 +0200171
172#Pods Service Account
173serviceAccount:
174 nameOverride: sdc-be
175 roles:
176 - read
Maciej Wereski771ec2a2021-10-14 13:59:12 +0000177
othman touijer2b764d02022-01-05 14:40:37 +0100178wait_for_job_container:
179 containers:
180 - '{{ include "common.name" . }}-job'
181
Maciej Wereski771ec2a2021-10-14 13:59:12 +0000182#Log configuration
183log:
184 path: /var/log/onap
185logConfigMapNamePrefix: '{{ include "common.fullname" . }}'