blob: 4d7ab25623427a8cbae6e721daff7b9fd5e6de87 [file] [log] [blame]
Joey Armstrong07475092023-01-26 10:56:13 -05001# Copyright 2019-2023 Open Networking Foundation (ONF) and the ONF Contributors
David Bainbridge2f9b76f2019-05-15 13:48:11 -07002#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
David Bainbridge8595b3b2020-06-05 12:23:05 -070014---
David Bainbridge2bdd4302020-06-09 17:13:18 -070015nameOverride: ~
16fullNameOverride: ~
Matteo Scandoloc2c917a2021-04-06 09:15:31 -070017fullHostnameOverride: ~
David Bainbridge2f9b76f2019-05-15 13:48:11 -070018
David Bainbridge60332ae2019-10-11 15:04:13 +000019# Default Values
20# The following are the default values used for every container in the
21# template.
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -080022global:
23 stack_name: voltha
Matteo Scandolo1d7ab922019-12-10 13:41:23 -080024 log_level: "WARN"
David Bainbridge5cb5d172019-07-24 02:30:19 +000025 image_registry: ''
Kent Hagerman42101a82019-06-12 12:52:39 -040026 image_org: "voltha/"
David Bainbridge60332ae2019-10-11 15:04:13 +000027 image_tag: ~
Kent Hagerman42101a82019-06-12 12:52:39 -040028 image_pullPolicy: "Always"
David Bainbridgecd30e542019-05-31 20:52:56 +000029 rw_core:
Girish Gowdraf8ac4032021-10-22 16:32:52 -070030 rpc_timeout: "30s"
Himani Chawla81472cd2021-11-08 17:14:11 +053031 flow_timeout: "30s"
Girish Gowdraf8ac4032021-10-22 16:32:52 -070032 internal_timeout: "30s"
akashreddyk9a1c32e2025-09-23 09:27:06 +053033 producer_retry_max: "10"
34 metadata_retry_max: "15"
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -080035 # Configure Log Correlation
36 log_correlation:
37 enabled: true
38 # Configure Tracing
39 tracing:
40 enabled: true
David Bainbridgecd30e542019-05-31 20:52:56 +000041
khenaidoo15c53fb2021-08-09 13:56:27 -040042# Probe values
43probe:
44 liveness:
45 initial_delay_seconds: 3
46 period_seconds: 3
47 readiness:
48 initial_delay_seconds: 3
49 period_seconds: 3
50
David Bainbridge8595b3b2020-06-05 12:23:05 -070051# Default security context under which the containers run
David Bainbridge16b19cc2020-05-29 11:50:44 -070052securityContext:
53 enabled: true
54 fsGroup: 1001
55 runAsUser: 1001
56 runAsGroup: 1001
David Bainbridge2f9b76f2019-05-15 13:48:11 -070057
58# Define connectivity to services on which VOLTHA depends
59services:
60 kafka:
David Bainbridge2f9b76f2019-05-15 13:48:11 -070061 cluster:
Neha Sharma1a3da1c2020-06-24 13:12:48 +000062 address: kafka:9092
David Bainbridge2f9b76f2019-05-15 13:48:11 -070063
abhaycd295062024-12-12 11:05:07 +053064 # Define connectivity to kv store
65 kvstore:
66 # type: etcd, redis or redis-sentinel
67 type: etcd
Neha Sharma1a3da1c2020-06-24 13:12:48 +000068 address: etcd:2379
David Bainbridge2f9b76f2019-05-15 13:48:11 -070069
Girish Kumar877af922020-07-31 06:05:32 +000070 # Define Tracing Agent connection details
71 tracing_agent:
72 address: jaeger-agent:6831
73
Jonathan Hart3980b742020-04-20 11:00:54 -070074 # Define the list of controllers to connect to
Matteo Scandolob65a5a72021-04-30 16:16:05 -070075 # NOTE this is needed only in case you need to connect to an external ONOS,
76 # if you want to connect to an ONOS installed via voltha-infra please refer to the onos_classic field in this config
77 controller: []
78 # - address: onos-openflow:6653
David Bainbridge2f9b76f2019-05-15 13:48:11 -070079
Matteo Scandoloe9a01f72020-05-05 09:33:59 -070080# Expose the golang pprof webserver, if enabled
81profiler:
82 enabled: false
83
Girish Kumar877af922020-07-31 06:05:32 +000084# Define the replica count for everything
David Bainbridge2f9b76f2019-05-15 13:48:11 -070085replicas:
86 # For R/W cores the templates translate the number of replicas
87 # into the number of RW core pairs with two pods per pair
88 rw_core: 1
89
90 # For everything else replicas are replicas
David Bainbridge2f9b76f2019-05-15 13:48:11 -070091 ofagent: 1
David Bainbridge2f9b76f2019-05-15 13:48:11 -070092
David Bainbridgecd30e542019-05-31 20:52:56 +000093rw_core:
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -080094 log_level: '{{ .Values.global.log_level }}'
khenaidoo15c53fb2021-08-09 13:56:27 -040095 rpc_timeout: '{{ .Values.global.rw_core.rpc_timeout }}'
Himani Chawla81472cd2021-11-08 17:14:11 +053096 flow_timeout: '{{ .Values.global.rw_core.flow_timeout }}'
khenaidoo15c53fb2021-08-09 13:56:27 -040097 internal_timeout: '{{ .Values.global.rw_core.internal_timeout }}'
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -080098 kv_store_data_prefix: 'service/{{ .Values.global.stack_name }}_voltha'
Himani Chawlaafd8e842021-03-25 01:32:59 +053099 stack_id: "{{ .Values.global.stack_name }}"
akashreddyk9a1c32e2025-09-23 09:27:06 +0530100 producer_retry_max : '{{ .Values.global.rw_core.producer_retry_max }}'
101 metadata_retry_max : '{{ .Values.global.rw_core.metadata_retry_max }}'
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800102 topics:
Matteo Scandolo06ee58c2021-05-26 15:28:51 -0700103 event_topic: "voltha.events"
khenaidoo15c53fb2021-08-09 13:56:27 -0400104 backoff_initial_interval: 500ms
105 backoff_max_interval: 5s
106 backoff_max_elapsed_time: 0s
David Bainbridgecd30e542019-05-31 20:52:56 +0000107
David K. Bainbridge707022f2020-01-23 14:15:07 -0800108ofagent:
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800109 log_level: '{{ .Values.global.log_level }}'
Matteo Scandolo06ee58c2021-05-26 15:28:51 -0700110 device_refresh_interval: '15s'
Marcos Aurelio Carrero (Furukawa)f6844f42023-06-06 15:18:58 -0300111 kv_store_data_prefix: 'service/{{ .Values.global.stack_name }}_voltha'
David K. Bainbridge707022f2020-01-23 14:15:07 -0800112
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700113# Define Docker images to be used
Jan Klareea3ab392023-10-31 14:27:23 +0100114# voltha-ofagent-go repo https://github.com/opencord/ofagent-go
115# voltha-rw-core repo https://github.com/opencord/voltha-go
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700116images:
David Bainbridge60018ec2020-06-02 13:32:30 -0700117 ofagent:
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800118 registry: '{{ .Values.global.image_registry }}'
119 repository: '{{ .Values.global.image_org }}voltha-ofagent-go'
Jan Klareea3ab392023-10-31 14:27:23 +0100120 tag: '{{- if hasKey .Values.global "image_tag" }}{{- if .Values.global.image_tag }}{{ .Values.global.image_tag }}{{- else }}2.1.6{{- end }}{{- else }}2.1.6{{- end }}'
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800121 pullPolicy: '{{ .Values.global.image_pullPolicy }}'
Matteo Scandoloccea27b2020-03-18 15:25:05 -0700122
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700123 rw_core:
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800124 registry: '{{ .Values.global.image_registry }}'
125 repository: '{{ .Values.global.image_org }}voltha-rw-core'
akashreddyk9a1c32e2025-09-23 09:27:06 +0530126 tag: '{{- if hasKey .Values.global "image_tag" }}{{- if .Values.global.image_tag }}{{ .Values.global.rw_core.image_tag }}{{- else }}{{ .Chart.AppVersion }}{{- end }}{{- else }}{{ .Chart.AppVersion }}{{- end }}'
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800127 pullPolicy: '{{ .Values.global.image_pullPolicy }}'
David K. Bainbridge637751d2021-03-25 22:18:08 +0000128
129ingress:
130 enabled: false
131 annotations:
132 kubernetes.io/ingress.class: "nginx"
133 nginx.ingress.kubernetes.io/ssl-redirect: "true"
134 nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
135 nginx.ingress.kubernetes.io/grpc-backend: "true"
136 enableVirtualHosts: false
Matteo Scandoloc2c917a2021-04-06 09:15:31 -0700137 baseHostname: local
David K. Bainbridge637751d2021-03-25 22:18:08 +0000138 hosts:
139 - host:
140 paths:
141 - "/voltha.VolthaService/"
142 tls: []
Matteo Scandolob65a5a72021-04-30 16:16:05 -0700143
144# ofAgent needs to connect to multiple instances of ONOS.
145onos_classic:
146 onosOfPort: 6653
147 replicas: 1
Andrey Pozolotin7e928a92021-08-13 12:37:24 +0200148
149resources:
150 rw_core:
151 requests:
152 cpu: 500m
153 memory: 100Mi
154 limits:
155 cpu: ~
156 memory: ~
157 ofagent:
158 requests:
159 cpu: 300m
160 memory: 50Mi
161 limits:
162 cpu: ~
163 memory: ~
Andrey Pozolotinda75c922021-08-24 17:41:08 +0200164
165# Define scheduling rules for stack pods
166scheduleRules:
167 preferStackPodsOnSameNode: false
168 preferStacksOnDifferentNodes: false