blob: 7b6a6bd02d41d52eeb153eecf3f5533917bd07a1 [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.
14
15---
David Bainbridge2f9b76f2019-05-15 13:48:11 -070016serviceaccount: voltha-serviceaccount
17private_etcd_cluster: true
18private_kafka_cluster: true
19
David Bainbridge60332ae2019-10-11 15:04:13 +000020# Default Values
21# The following are the default values used for every container in the
22# template.
David Bainbridgecd30e542019-05-31 20:52:56 +000023defaults:
David Bainbridge50cb1ef2019-07-23 22:36:17 +000024 log_level: "ERROR"
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:
Kent Hagerman42101a82019-06-12 12:52:39 -040030 timeout: "8000"
David Bainbridgecd30e542019-05-31 20:52:56 +000031
David Bainbridge2f9b76f2019-05-15 13:48:11 -070032# Configure the Kafka sub-chart (if it is used)
33kafka:
34 configurationOverrides:
35 "offsets.topic.replication.factor": 1
36 "log.retention.hours": 4
37 "log.message.timestamp.type": "LogAppendTime"
38 persistence:
39 enabled: false
40 zookeeper:
41 replicaCount: 1
42 persistence:
43 enabled: false
44 replicas: 1
45
46# Define connectivity to services on which VOLTHA depends
47services:
48 kafka:
49 adapter:
50 service: voltha-kafka.voltha.svc.cluster.local
51 port: 9092
52 cluster:
53 service: voltha-kafka.voltha.svc.cluster.local
54 port: 9092
55
56 # Define connectivity to etcd
57 etcd:
58 service: voltha-etcd-cluster-client.voltha.svc.cluster.local
59 port: 2379
60
61 # Define controller to which to connect
62 controller:
63 service: onos-openflow.default.svc.cluster.local
64 port: 6653
65
66# Define the recplica count for everything
67replicas:
68 # For R/W cores the templates translate the number of replicas
69 # into the number of RW core pairs with two pods per pair
70 rw_core: 1
71
72 # For everything else replicas are replicas
73 cli: 1
74 ofagent: 1
75 ro_core: 1
76 afrouter: 1
77 afrouterd: 1
78
David Bainbridge50cb1ef2019-07-23 22:36:17 +000079ro_core:
80 log_level: '{{ .Values.defaults.log_level }}'
81
David Bainbridgecd30e542019-05-31 20:52:56 +000082rw_core:
David Bainbridge50cb1ef2019-07-23 22:36:17 +000083 log_level: '{{ .Values.defaults.log_level }}'
Kent Hagerman42101a82019-06-12 12:52:39 -040084 core_timeout: '{{ .Values.defaults.rw_core.timeout }}'
85 timeout_long_request: '{{ .Values.defaults.rw_core.timeout }}'
86 timeout_request: '{{ .Values.defaults.rw_core.timeout }}'
David Bainbridgecd30e542019-05-31 20:52:56 +000087
A R Karthickc3b2df92019-09-30 23:22:38 +000088api_server:
89 kafka_topic: 'affinityRouter'
David Bainbridgecd30e542019-05-31 20:52:56 +000090
David Bainbridge2f9b76f2019-05-15 13:48:11 -070091# Define Docker images to be used
92images:
93 cli:
Kent Hagerman42101a82019-06-12 12:52:39 -040094 registry: '{{ .Values.defaults.image_registry }}'
95 repository: '{{ .Values.defaults.image_org }}voltha-cli'
David Bainbridge60332ae2019-10-11 15:04:13 +000096 tag: '{{ if hasKey .Values.defaults "image_tag" }}{{ .Values.defaults.image_tag }}{{ else }}2.1.3{{ end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -040097 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -070098
99 ofagent:
Kent Hagerman42101a82019-06-12 12:52:39 -0400100 registry: '{{ .Values.defaults.image_registry }}'
101 repository: '{{ .Values.defaults.image_org }}voltha-ofagent'
David Bainbridge60332ae2019-10-11 15:04:13 +0000102 tag: '{{ if hasKey .Values.defaults "image_tag" }}{{ .Values.defaults.image_tag }}{{ else }}2.1.3{{ end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -0400103 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700104
105 ro_core:
Kent Hagerman42101a82019-06-12 12:52:39 -0400106 registry: '{{ .Values.defaults.image_registry }}'
107 repository: '{{ .Values.defaults.image_org }}voltha-ro-core'
David Bainbridge60332ae2019-10-11 15:04:13 +0000108 tag: '{{ if hasKey .Values.defaults "image_tag" }}{{ .Values.defaults.image_tag }}{{ else }}2.1.3{{ end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -0400109 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700110
111 rw_core:
Kent Hagerman42101a82019-06-12 12:52:39 -0400112 registry: '{{ .Values.defaults.image_registry }}'
113 repository: '{{ .Values.defaults.image_org }}voltha-rw-core'
David Bainbridge60332ae2019-10-11 15:04:13 +0000114 tag: '{{ if hasKey .Values.defaults "image_tag" }}{{ .Values.defaults.image_tag }}{{ else }}2.1.3{{ end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -0400115 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700116
117 afrouter:
Kent Hagerman42101a82019-06-12 12:52:39 -0400118 registry: '{{ .Values.defaults.image_registry }}'
119 repository: '{{ .Values.defaults.image_org }}voltha-afrouter'
David Bainbridge60332ae2019-10-11 15:04:13 +0000120 tag: '{{ if hasKey .Values.defaults "image_tag" }}{{ .Values.defaults.image_tag }}{{ else }}2.2.0{{ end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -0400121 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700122
123 afrouterd:
Kent Hagerman42101a82019-06-12 12:52:39 -0400124 registry: '{{ .Values.defaults.image_registry }}'
125 repository: '{{ .Values.defaults.image_org }}voltha-afrouterd'
David Bainbridge60332ae2019-10-11 15:04:13 +0000126 tag: '{{ if hasKey .Values.defaults "image_tag" }}{{ .Values.defaults.image_tag }}{{ else }}2.2.0{{ end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -0400127 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700128 restartPolicy: 'Always'