blob: e225727c617fc66f4393959d4f14dbb049163714 [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
David Bainbridgee5887072019-11-14 23:01:01 +000019therecanbeonlyone: false
David Bainbridge2f9b76f2019-05-15 13:48:11 -070020
David Bainbridge60332ae2019-10-11 15:04:13 +000021# Default Values
22# The following are the default values used for every container in the
23# template.
David Bainbridgecd30e542019-05-31 20:52:56 +000024defaults:
David Bainbridge50cb1ef2019-07-23 22:36:17 +000025 log_level: "ERROR"
David Bainbridge5cb5d172019-07-24 02:30:19 +000026 image_registry: ''
Kent Hagerman42101a82019-06-12 12:52:39 -040027 image_org: "voltha/"
David Bainbridge60332ae2019-10-11 15:04:13 +000028 image_tag: ~
Kent Hagerman42101a82019-06-12 12:52:39 -040029 image_pullPolicy: "Always"
David Bainbridgecd30e542019-05-31 20:52:56 +000030 rw_core:
Kent Hagerman42101a82019-06-12 12:52:39 -040031 timeout: "8000"
David Bainbridgecd30e542019-05-31 20:52:56 +000032
David Bainbridge2f9b76f2019-05-15 13:48:11 -070033# Configure the Kafka sub-chart (if it is used)
34kafka:
35 configurationOverrides:
36 "offsets.topic.replication.factor": 1
37 "log.retention.hours": 4
38 "log.message.timestamp.type": "LogAppendTime"
39 persistence:
40 enabled: false
41 zookeeper:
42 replicaCount: 1
43 persistence:
44 enabled: false
45 replicas: 1
46
47# Define connectivity to services on which VOLTHA depends
48services:
49 kafka:
50 adapter:
51 service: voltha-kafka.voltha.svc.cluster.local
52 port: 9092
53 cluster:
54 service: voltha-kafka.voltha.svc.cluster.local
55 port: 9092
56
57 # Define connectivity to etcd
58 etcd:
59 service: voltha-etcd-cluster-client.voltha.svc.cluster.local
60 port: 2379
61
62 # Define controller to which to connect
63 controller:
64 service: onos-openflow.default.svc.cluster.local
65 port: 6653
66
67# Define the recplica count for everything
68replicas:
69 # For R/W cores the templates translate the number of replicas
70 # into the number of RW core pairs with two pods per pair
71 rw_core: 1
72
73 # For everything else replicas are replicas
74 cli: 1
75 ofagent: 1
76 ro_core: 1
77 afrouter: 1
78 afrouterd: 1
79
David Bainbridge50cb1ef2019-07-23 22:36:17 +000080ro_core:
81 log_level: '{{ .Values.defaults.log_level }}'
82
David Bainbridgecd30e542019-05-31 20:52:56 +000083rw_core:
David Bainbridge50cb1ef2019-07-23 22:36:17 +000084 log_level: '{{ .Values.defaults.log_level }}'
Kent Hagerman42101a82019-06-12 12:52:39 -040085 core_timeout: '{{ .Values.defaults.rw_core.timeout }}'
86 timeout_long_request: '{{ .Values.defaults.rw_core.timeout }}'
87 timeout_request: '{{ .Values.defaults.rw_core.timeout }}'
David Bainbridgecd30e542019-05-31 20:52:56 +000088
A R Karthickc3b2df92019-09-30 23:22:38 +000089api_server:
90 kafka_topic: 'affinityRouter'
David Bainbridgecd30e542019-05-31 20:52:56 +000091
David Bainbridge2f9b76f2019-05-15 13:48:11 -070092# Define Docker images to be used
93images:
94 cli:
Kent Hagerman42101a82019-06-12 12:52:39 -040095 registry: '{{ .Values.defaults.image_registry }}'
96 repository: '{{ .Values.defaults.image_org }}voltha-cli'
Scott Baker0b8d6b62019-11-04 10:33:33 -080097 tag: '{{- if hasKey .Values.defaults "image_tag" }}{{- if .Values.defaults.image_tag }}{{ .Values.defaults.image_tag }}{{- else }}2.2.1{{- end }}{{- else }}2.2.1{{- end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -040098 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -070099
100 ofagent:
Kent Hagerman42101a82019-06-12 12:52:39 -0400101 registry: '{{ .Values.defaults.image_registry }}'
102 repository: '{{ .Values.defaults.image_org }}voltha-ofagent'
Scott Baker0b8d6b62019-11-04 10:33:33 -0800103 tag: '{{- if hasKey .Values.defaults "image_tag" }}{{- if .Values.defaults.image_tag }}{{ .Values.defaults.image_tag }}{{- else }}2.2.1{{- end }}{{- else }}2.2.1{{- end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -0400104 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700105
106 ro_core:
Kent Hagerman42101a82019-06-12 12:52:39 -0400107 registry: '{{ .Values.defaults.image_registry }}'
108 repository: '{{ .Values.defaults.image_org }}voltha-ro-core'
Scott Baker0b8d6b62019-11-04 10:33:33 -0800109 tag: '{{- if hasKey .Values.defaults "image_tag" }}{{- if .Values.defaults.image_tag }}{{ .Values.defaults.image_tag }}{{- else }}2.2.1{{- end }}{{- else }}2.2.1{{- end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -0400110 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700111
112 rw_core:
Kent Hagerman42101a82019-06-12 12:52:39 -0400113 registry: '{{ .Values.defaults.image_registry }}'
114 repository: '{{ .Values.defaults.image_org }}voltha-rw-core'
Scott Baker0b8d6b62019-11-04 10:33:33 -0800115 tag: '{{- if hasKey .Values.defaults "image_tag" }}{{- if .Values.defaults.image_tag }}{{ .Values.defaults.image_tag }}{{- else }}2.2.1{{- end }}{{- else }}2.2.1{{- end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -0400116 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700117
118 afrouter:
Kent Hagerman42101a82019-06-12 12:52:39 -0400119 registry: '{{ .Values.defaults.image_registry }}'
120 repository: '{{ .Values.defaults.image_org }}voltha-afrouter'
Scott Baker0b8d6b62019-11-04 10:33:33 -0800121 tag: '{{- if hasKey .Values.defaults "image_tag" }}{{- if .Values.defaults.image_tag }}{{ .Values.defaults.image_tag }}{{- else }}2.2.1{{- end }}{{- else }}2.2.1{{- end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -0400122 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700123
124 afrouterd:
Kent Hagerman42101a82019-06-12 12:52:39 -0400125 registry: '{{ .Values.defaults.image_registry }}'
126 repository: '{{ .Values.defaults.image_org }}voltha-afrouterd'
Scott Baker0b8d6b62019-11-04 10:33:33 -0800127 tag: '{{- if hasKey .Values.defaults "image_tag" }}{{- if .Values.defaults.image_tag }}{{ .Values.defaults.image_tag }}{{- else }}2.2.1{{- end }}{{- else }}2.2.1{{- end }}'
Kent Hagerman42101a82019-06-12 12:52:39 -0400128 pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
David Bainbridge2f9b76f2019-05-15 13:48:11 -0700129 restartPolicy: 'Always'