blob: a0a04887aea7d27ed0121534924333b30c98f353 [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
vasraz8b1f0852023-03-23 13:22:11 +000042image: onap/sdc-backend-all-plugins:1.12.3
43backendInitImage: onap/sdc-backend-init:1.12.3
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
Mandeep Khindaa1047f42018-03-22 02:12:15 +0000137
Mukula93baa82018-09-19 15:56:58 +0000138# Resource Limit flavor -By Default using small
139flavor: small
140# Segregation for Different environment (Small and Large)
141resources:
142 small:
143 limits:
144 cpu: 1
ChrisC32172342020-10-02 16:39:13 +0200145 memory: 2Gi
Mukula93baa82018-09-19 15:56:58 +0000146 requests:
ChrisC32172342020-10-02 16:39:13 +0200147 cpu: 100m
Mukula93baa82018-09-19 15:56:58 +0000148 memory: 1Gi
149 large:
150 limits:
151 cpu: 2
ChrisC32172342020-10-02 16:39:13 +0200152 memory: 4Gi
Mukula93baa82018-09-19 15:56:58 +0000153 requests:
ChrisC32172342020-10-02 16:39:13 +0200154 cpu: 200m
Mukula93baa82018-09-19 15:56:58 +0000155 memory: 2Gi
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000156 unlimited: {}
farida azmy1383b4c2021-04-06 12:33:31 +0200157
158#Pods Service Account
159serviceAccount:
160 nameOverride: sdc-be
161 roles:
162 - read
Maciej Wereski771ec2a2021-10-14 13:59:12 +0000163
othman touijer2b764d02022-01-05 14:40:37 +0100164wait_for_job_container:
165 containers:
166 - '{{ include "common.name" . }}-job'
167
Maciej Wereski771ec2a2021-10-14 13:59:12 +0000168#Log configuration
169log:
170 path: /var/log/onap
171logConfigMapNamePrefix: '{{ include "common.fullname" . }}'