Mandeep Khinda | b1f9efe | 2018-03-28 19:01:55 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
toshrajbhardwaj | f4fc1c6 | 2018-08-06 07:35:14 +0000 | [diff] [blame] | 2 | # Modifications Copyright © 2018 AT&T, ZTE |
efiacor | 3422fe9 | 2022-07-12 13:19:53 +0100 | [diff] [blame] | 3 | # Modifications Copyright © 2022 Nordix Foundation |
Mandeep Khinda | b1f9efe | 2018-03-28 19:01:55 +0000 | [diff] [blame] | 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 | |
Mandeep Khinda | a1047f4 | 2018-03-22 02:12:15 +0000 | [diff] [blame] | 17 | ################################################################# |
| 18 | # Global configuration defaults. |
| 19 | ################################################################# |
| 20 | global: |
| 21 | nodePortPrefix: 302 |
Andreas Geissler | fd450c4 | 2021-12-10 08:36:45 +0000 | [diff] [blame] | 22 | sdc_cassandra: |
ChrisC | 742a7b2 | 2020-09-04 11:29:57 +0200 | [diff] [blame] | 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 |
efiacor | 2f1c2a2 | 2022-11-29 11:39:41 +0000 | [diff] [blame] | 33 | # Global Strimzi kafka config overridden |
| 34 | # from parent values.yaml |
efiacor | 3422fe9 | 2022-07-12 13:19:53 +0100 | [diff] [blame] | 35 | kafka: |
| 36 | useKafka: overridden-from-parent-values-yaml |
Mandeep Khinda | a1047f4 | 2018-03-22 02:12:15 +0000 | [diff] [blame] | 37 | |
| 38 | ################################################################# |
| 39 | # Application configuration defaults. |
| 40 | ################################################################# |
| 41 | # application image |
MichaelMorris | 54ba66a | 2023-04-26 11:04:33 +0100 | [diff] [blame] | 42 | image: onap/sdc-backend-all-plugins:1.12.4 |
| 43 | backendInitImage: onap/sdc-backend-init:1.12.4 |
Sylvain Desbureaux | 0a1eaf3 | 2020-11-19 17:56:08 +0100 | [diff] [blame] | 44 | |
Mandeep Khinda | a1047f4 | 2018-03-22 02:12:15 +0000 | [diff] [blame] | 45 | pullPolicy: Always |
| 46 | |
| 47 | # flag to enable debugging - application support required |
| 48 | debugEnabled: false |
| 49 | |
ChrisC | 742a7b2 | 2020-09-04 11:29:57 +0200 | [diff] [blame] | 50 | #environment file |
| 51 | env: |
efiacor | 2f1c2a2 | 2022-11-29 11:39:41 +0000 | [diff] [blame] | 52 | name: &env AUTO |
ChrisC | 742a7b2 | 2020-09-04 11:29:57 +0200 | [diff] [blame] | 53 | |
ChrisC | 742a7b2 | 2020-09-04 11:29:57 +0200 | [diff] [blame] | 54 | ################################################################# |
| 55 | # SDC Config part |
| 56 | ################################################################# |
Mandeep Khinda | 403c1c1 | 2018-04-19 23:15:43 +0000 | [diff] [blame] | 57 | config: |
r.bogacki | 65cb1ac | 2019-09-03 09:27:24 +0200 | [diff] [blame] | 58 | javaOptions: "-Xmx1536m -Xms1536m" |
Mandeep Khinda | 403c1c1 | 2018-04-19 23:15:43 +0000 | [diff] [blame] | 59 | cassandraSslEnabled: "false" |
efiacor | 2f1c2a2 | 2022-11-29 11:39:41 +0000 | [diff] [blame] | 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 | |
Mandeep Khinda | 403c1c1 | 2018-04-19 23:15:43 +0000 | [diff] [blame] | 72 | |
Mandeep Khinda | a1047f4 | 2018-03-22 02:12:15 +0000 | [diff] [blame] | 73 | # default number of instances |
| 74 | replicaCount: 1 |
| 75 | |
| 76 | nodeSelector: {} |
| 77 | |
| 78 | affinity: {} |
| 79 | |
| 80 | # probe configuration parameters |
| 81 | liveness: |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 82 | initialDelaySeconds: 1 |
Mandeep Khinda | a1047f4 | 2018-03-22 02:12:15 +0000 | [diff] [blame] | 83 | periodSeconds: 10 |
othman touijer | 2b764d0 | 2022-01-05 14:40:37 +0100 | [diff] [blame] | 84 | timeoutSeconds: 180 |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 85 | successThreshold: 1 |
| 86 | failureThreshold: 3 |
Mandeep Khinda | a1047f4 | 2018-03-22 02:12:15 +0000 | [diff] [blame] | 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: |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 92 | initialDelaySeconds: 1 |
Mandeep Khinda | a1047f4 | 2018-03-22 02:12:15 +0000 | [diff] [blame] | 93 | periodSeconds: 10 |
othman touijer | 2b764d0 | 2022-01-05 14:40:37 +0100 | [diff] [blame] | 94 | timeoutSeconds: 180 |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 95 | successThreshold: 1 |
| 96 | failureThreshold: 3 |
| 97 | |
| 98 | startup: |
| 99 | initialDelaySeconds: 10 |
| 100 | periodSeconds: 10 |
othman touijer | 2b764d0 | 2022-01-05 14:40:37 +0100 | [diff] [blame] | 101 | timeoutSeconds: 180 |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 102 | successThreshold: 1 |
| 103 | failureThreshold: 60 |
Mandeep Khinda | a1047f4 | 2018-03-22 02:12:15 +0000 | [diff] [blame] | 104 | |
| 105 | service: |
| 106 | type: NodePort |
| 107 | name: sdc-be |
Joanna Jeremicz | fe52bf5 | 2021-04-21 14:31:29 +0200 | [diff] [blame] | 108 | internalPort: 8080 |
gummar | a72e6de | 2020-03-12 11:15:56 +0000 | [diff] [blame] | 109 | ports: |
othman touijer | 2b764d0 | 2022-01-05 14:40:37 +0100 | [diff] [blame] | 110 | - name: tcp-api |
Andreas Geissler | dd34ead | 2023-03-20 17:16:45 +0100 | [diff] [blame] | 111 | port: 8080 |
gummar | a72e6de | 2020-03-12 11:15:56 +0000 | [diff] [blame] | 112 | port_protocol: http |
| 113 | nodePort: '04' |
Andreas Geissler | dd34ead | 2023-03-20 17:16:45 +0100 | [diff] [blame] | 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 }} |
Mandeep Khinda | a1047f4 | 2018-03-22 02:12:15 +0000 | [diff] [blame] | 127 | |
| 128 | ingress: |
| 129 | enabled: false |
Lucjan Bryndza | a0abab1 | 2019-11-28 11:00:50 +0100 | [diff] [blame] | 130 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 131 | - baseaddr: "sdc-be-api" |
Lucjan Bryndza | a0abab1 | 2019-11-28 11:00:50 +0100 | [diff] [blame] | 132 | name: "sdc-be" |
Andreas Geissler | dd34ead | 2023-03-20 17:16:45 +0100 | [diff] [blame] | 133 | port: 8080 |
Lucjan Bryndza | a0abab1 | 2019-11-28 11:00:50 +0100 | [diff] [blame] | 134 | config: |
gummar | a72e6de | 2020-03-12 11:15:56 +0000 | [diff] [blame] | 135 | ssl: "redirect" |
Lucjan Bryndza | a0abab1 | 2019-11-28 11:00:50 +0100 | [diff] [blame] | 136 | |
AndrewLamb | b304a32 | 2023-04-11 17:05:54 +0100 | [diff] [blame] | 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 |
Mandeep Khinda | a1047f4 | 2018-03-22 02:12:15 +0000 | [diff] [blame] | 151 | |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 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 |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 159 | memory: 2Gi |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 160 | requests: |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 161 | cpu: 100m |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 162 | memory: 1Gi |
| 163 | large: |
| 164 | limits: |
| 165 | cpu: 2 |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 166 | memory: 4Gi |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 167 | requests: |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 168 | cpu: 200m |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 169 | memory: 2Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 170 | unlimited: {} |
farida azmy | 1383b4c | 2021-04-06 12:33:31 +0200 | [diff] [blame] | 171 | |
| 172 | #Pods Service Account |
| 173 | serviceAccount: |
| 174 | nameOverride: sdc-be |
| 175 | roles: |
| 176 | - read |
Maciej Wereski | 771ec2a | 2021-10-14 13:59:12 +0000 | [diff] [blame] | 177 | |
othman touijer | 2b764d0 | 2022-01-05 14:40:37 +0100 | [diff] [blame] | 178 | wait_for_job_container: |
| 179 | containers: |
| 180 | - '{{ include "common.name" . }}-job' |
| 181 | |
Maciej Wereski | 771ec2a | 2021-10-14 13:59:12 +0000 | [diff] [blame] | 182 | #Log configuration |
| 183 | log: |
| 184 | path: /var/log/onap |
| 185 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |