David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 1 | # 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 Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 16 | serviceaccount: voltha-serviceaccount |
| 17 | private_etcd_cluster: true |
| 18 | private_kafka_cluster: true |
David Bainbridge | e588707 | 2019-11-14 23:01:01 +0000 | [diff] [blame^] | 19 | therecanbeonlyone: false |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 20 | |
David Bainbridge | 60332ae | 2019-10-11 15:04:13 +0000 | [diff] [blame] | 21 | # Default Values |
| 22 | # The following are the default values used for every container in the |
| 23 | # template. |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 24 | defaults: |
David Bainbridge | 50cb1ef | 2019-07-23 22:36:17 +0000 | [diff] [blame] | 25 | log_level: "ERROR" |
David Bainbridge | 5cb5d17 | 2019-07-24 02:30:19 +0000 | [diff] [blame] | 26 | image_registry: '' |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 27 | image_org: "voltha/" |
David Bainbridge | 60332ae | 2019-10-11 15:04:13 +0000 | [diff] [blame] | 28 | image_tag: ~ |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 29 | image_pullPolicy: "Always" |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 30 | rw_core: |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 31 | timeout: "8000" |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 32 | |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 33 | # Configure the Kafka sub-chart (if it is used) |
| 34 | kafka: |
| 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 |
| 48 | services: |
| 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 |
| 68 | replicas: |
| 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 Bainbridge | 50cb1ef | 2019-07-23 22:36:17 +0000 | [diff] [blame] | 80 | ro_core: |
| 81 | log_level: '{{ .Values.defaults.log_level }}' |
| 82 | |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 83 | rw_core: |
David Bainbridge | 50cb1ef | 2019-07-23 22:36:17 +0000 | [diff] [blame] | 84 | log_level: '{{ .Values.defaults.log_level }}' |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 85 | 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 Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 88 | |
A R Karthick | c3b2df9 | 2019-09-30 23:22:38 +0000 | [diff] [blame] | 89 | api_server: |
| 90 | kafka_topic: 'affinityRouter' |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 91 | |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 92 | # Define Docker images to be used |
| 93 | images: |
| 94 | cli: |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 95 | registry: '{{ .Values.defaults.image_registry }}' |
| 96 | repository: '{{ .Values.defaults.image_org }}voltha-cli' |
Scott Baker | 0b8d6b6 | 2019-11-04 10:33:33 -0800 | [diff] [blame] | 97 | 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 Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 98 | pullPolicy: '{{ .Values.defaults.image_pullPolicy }}' |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 99 | |
| 100 | ofagent: |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 101 | registry: '{{ .Values.defaults.image_registry }}' |
| 102 | repository: '{{ .Values.defaults.image_org }}voltha-ofagent' |
Scott Baker | 0b8d6b6 | 2019-11-04 10:33:33 -0800 | [diff] [blame] | 103 | 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 Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 104 | pullPolicy: '{{ .Values.defaults.image_pullPolicy }}' |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 105 | |
| 106 | ro_core: |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 107 | registry: '{{ .Values.defaults.image_registry }}' |
| 108 | repository: '{{ .Values.defaults.image_org }}voltha-ro-core' |
Scott Baker | 0b8d6b6 | 2019-11-04 10:33:33 -0800 | [diff] [blame] | 109 | 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 Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 110 | pullPolicy: '{{ .Values.defaults.image_pullPolicy }}' |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 111 | |
| 112 | rw_core: |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 113 | registry: '{{ .Values.defaults.image_registry }}' |
| 114 | repository: '{{ .Values.defaults.image_org }}voltha-rw-core' |
Scott Baker | 0b8d6b6 | 2019-11-04 10:33:33 -0800 | [diff] [blame] | 115 | 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 Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 116 | pullPolicy: '{{ .Values.defaults.image_pullPolicy }}' |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 117 | |
| 118 | afrouter: |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 119 | registry: '{{ .Values.defaults.image_registry }}' |
| 120 | repository: '{{ .Values.defaults.image_org }}voltha-afrouter' |
Scott Baker | 0b8d6b6 | 2019-11-04 10:33:33 -0800 | [diff] [blame] | 121 | 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 Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 122 | pullPolicy: '{{ .Values.defaults.image_pullPolicy }}' |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 123 | |
| 124 | afrouterd: |
Kent Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 125 | registry: '{{ .Values.defaults.image_registry }}' |
| 126 | repository: '{{ .Values.defaults.image_org }}voltha-afrouterd' |
Scott Baker | 0b8d6b6 | 2019-11-04 10:33:33 -0800 | [diff] [blame] | 127 | 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 Hagerman | 42101a8 | 2019-06-12 12:52:39 -0400 | [diff] [blame] | 128 | pullPolicy: '{{ .Values.defaults.image_pullPolicy }}' |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 129 | restartPolicy: 'Always' |