blob: c2dd843d694dd02679c89be8cd50c5d89f56187d [file] [log] [blame]
David Bainbridge2f9b76f2019-05-15 13:48:11 -07001# Copyright 2019-present Open Networking Foundation
2#
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"
31 internal_timeout: "30s"
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -080032 # Configure Log Correlation
33 log_correlation:
34 enabled: true
35 # Configure Tracing
36 tracing:
37 enabled: true
David Bainbridgecd30e542019-05-31 20:52:56 +000038
khenaidoo15c53fb2021-08-09 13:56:27 -040039# Probe values
40probe:
41 liveness:
42 initial_delay_seconds: 3
43 period_seconds: 3
44 readiness:
45 initial_delay_seconds: 3
46 period_seconds: 3
47
David Bainbridge8595b3b2020-06-05 12:23:05 -070048# Default security context under which the containers run
David Bainbridge16b19cc2020-05-29 11:50:44 -070049securityContext:
50 enabled: true
51 fsGroup: 1001
52 runAsUser: 1001
53 runAsGroup: 1001
David Bainbridge2f9b76f2019-05-15 13:48:11 -070054
55# Define connectivity to services on which VOLTHA depends
56services:
57 kafka:
David Bainbridge2f9b76f2019-05-15 13:48:11 -070058 cluster:
Neha Sharma1a3da1c2020-06-24 13:12:48 +000059 address: kafka:9092
David Bainbridge2f9b76f2019-05-15 13:48:11 -070060
61 # Define connectivity to etcd
62 etcd:
Neha Sharma1a3da1c2020-06-24 13:12:48 +000063 address: etcd:2379
David Bainbridge2f9b76f2019-05-15 13:48:11 -070064
Girish Kumar877af922020-07-31 06:05:32 +000065 # Define Tracing Agent connection details
66 tracing_agent:
67 address: jaeger-agent:6831
68
Jonathan Hart3980b742020-04-20 11:00:54 -070069 # Define the list of controllers to connect to
Matteo Scandolob65a5a72021-04-30 16:16:05 -070070 # NOTE this is needed only in case you need to connect to an external ONOS,
71 # if you want to connect to an ONOS installed via voltha-infra please refer to the onos_classic field in this config
72 controller: []
73 # - address: onos-openflow:6653
David Bainbridge2f9b76f2019-05-15 13:48:11 -070074
Matteo Scandoloe9a01f72020-05-05 09:33:59 -070075# Expose the golang pprof webserver, if enabled
76profiler:
77 enabled: false
78
Girish Kumar877af922020-07-31 06:05:32 +000079# Define the replica count for everything
David Bainbridge2f9b76f2019-05-15 13:48:11 -070080replicas:
81 # For R/W cores the templates translate the number of replicas
82 # into the number of RW core pairs with two pods per pair
83 rw_core: 1
84
85 # For everything else replicas are replicas
David Bainbridge2f9b76f2019-05-15 13:48:11 -070086 ofagent: 1
David Bainbridge2f9b76f2019-05-15 13:48:11 -070087
David Bainbridgecd30e542019-05-31 20:52:56 +000088rw_core:
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -080089 log_level: '{{ .Values.global.log_level }}'
khenaidoo15c53fb2021-08-09 13:56:27 -040090 rpc_timeout: '{{ .Values.global.rw_core.rpc_timeout }}'
91 internal_timeout: '{{ .Values.global.rw_core.internal_timeout }}'
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -080092 kv_store_data_prefix: 'service/{{ .Values.global.stack_name }}_voltha'
Himani Chawlaafd8e842021-03-25 01:32:59 +053093 stack_id: "{{ .Values.global.stack_name }}"
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -080094 topics:
Matteo Scandolo06ee58c2021-05-26 15:28:51 -070095 event_topic: "voltha.events"
khenaidoo15c53fb2021-08-09 13:56:27 -040096 backoff_initial_interval: 500ms
97 backoff_max_interval: 5s
98 backoff_max_elapsed_time: 0s
David Bainbridgecd30e542019-05-31 20:52:56 +000099
David K. Bainbridge707022f2020-01-23 14:15:07 -0800100ofagent:
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800101 log_level: '{{ .Values.global.log_level }}'
Matteo Scandolo06ee58c2021-05-26 15:28:51 -0700102 device_refresh_interval: '15s'
David K. Bainbridge707022f2020-01-23 14:15:07 -0800103
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700104# Define Docker images to be used
105images:
David Bainbridge60018ec2020-06-02 13:32:30 -0700106 ofagent:
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800107 registry: '{{ .Values.global.image_registry }}'
108 repository: '{{ .Values.global.image_org }}voltha-ofagent-go'
khenaidoo15c53fb2021-08-09 13:56:27 -0400109 tag: '{{- if hasKey .Values.global "image_tag" }}{{- if .Values.global.image_tag }}{{ .Values.global.image_tag }}{{- else }}2.0.0{{- end }}{{- else }}2.0.0{{- end }}'
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800110 pullPolicy: '{{ .Values.global.image_pullPolicy }}'
Matteo Scandoloccea27b2020-03-18 15:25:05 -0700111
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700112 rw_core:
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800113 registry: '{{ .Values.global.image_registry }}'
114 repository: '{{ .Values.global.image_org }}voltha-rw-core'
khenaidoo15c53fb2021-08-09 13:56:27 -0400115 tag: '{{- if hasKey .Values.global "image_tag" }}{{- if .Values.global.image_tag }}{{ .Values.global.image_tag }}{{- else }}3.0.0{{- end }}{{- else }}3.0.0{{- end }}'
Matteo Scandolob4c5f4e2020-11-11 12:05:23 -0800116 pullPolicy: '{{ .Values.global.image_pullPolicy }}'
David K. Bainbridge637751d2021-03-25 22:18:08 +0000117
118ingress:
119 enabled: false
120 annotations:
121 kubernetes.io/ingress.class: "nginx"
122 nginx.ingress.kubernetes.io/ssl-redirect: "true"
123 nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
124 nginx.ingress.kubernetes.io/grpc-backend: "true"
125 enableVirtualHosts: false
Matteo Scandoloc2c917a2021-04-06 09:15:31 -0700126 baseHostname: local
David K. Bainbridge637751d2021-03-25 22:18:08 +0000127 hosts:
128 - host:
129 paths:
130 - "/voltha.VolthaService/"
131 tls: []
Matteo Scandolob65a5a72021-04-30 16:16:05 -0700132
133# ofAgent needs to connect to multiple instances of ONOS.
134onos_classic:
135 onosOfPort: 6653
136 replicas: 1
Andrey Pozolotin7e928a92021-08-13 12:37:24 +0200137
138resources:
139 rw_core:
140 requests:
141 cpu: 500m
142 memory: 100Mi
143 limits:
144 cpu: ~
145 memory: ~
146 ofagent:
147 requests:
148 cpu: 300m
149 memory: 50Mi
150 limits:
151 cpu: ~
152 memory: ~
Andrey Pozolotinda75c922021-08-24 17:41:08 +0200153
154# Define scheduling rules for stack pods
155scheduleRules:
156 preferStackPodsOnSameNode: false
157 preferStacksOnDifferentNodes: false