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