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 | apiVersion: apps/v1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: adapter-simulated-olt |
| 20 | namespace: {{ .Release.Namespace }} |
| 21 | spec: |
| 22 | replicas: {{ .Values.replicas.adapter_simulated_olt }} |
| 23 | selector: |
| 24 | matchLabels: |
| 25 | app: adapter-simulated-olt |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: adapter-simulated-olt |
David Bainbridge | 1f88804 | 2019-06-24 18:02:01 +0000 | [diff] [blame] | 30 | app.kubernetes.io/name: "adapter-simulated-olt" |
| 31 | app.kubernetes.io/version: {{ quote .Chart.AppVersion }} |
| 32 | app.kubernetes.io/component: "adapter" |
| 33 | app.kubernetes.io/part-of: "voltha" |
| 34 | app.kubernetes.io/managed-by: {{ quote .Release.Service }} |
| 35 | helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 36 | annotations: |
| 37 | cni: "calico" |
| 38 | spec: |
| 39 | containers: |
| 40 | - name: adapter-simulated-olt |
David Bainbridge | 5cb5d17 | 2019-07-24 02:30:19 +0000 | [diff] [blame] | 41 | image: {{ tpl .Values.images.adapter_simulated_olt.registry . }}{{ tpl .Values.images.adapter_simulated_olt.repository . }}:{{ tpl ( tpl .Values.images.adapter_simulated_olt.tag . ) . }} |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 42 | imagePullPolicy: {{ tpl .Values.images.adapter_simulated_olt.pullPolicy . }} |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 43 | args: |
| 44 | - "/app/simulated_olt" |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 45 | - "-kafka_adapter_host={{ .Values.services.kafka.adapter.service }}" |
| 46 | - "-kafka_adapter_port={{ .Values.services.kafka.adapter.port }}" |
| 47 | - "-kafka_cluster_host={{ .Values.services.kafka.cluster.service }}" |
| 48 | - "-kafka_cluster_port={{ .Values.services.kafka.cluster.port }}" |
| 49 | - "-kv_store_host={{ .Values.services.etcd.service }}" |
| 50 | - "-kv_store_port={{ .Values.services.etcd.port }}" |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 51 | - "-core_topic=rwcore" |
| 52 | - "-simulator_topic=simulated_olt" |
David Bainbridge | eb3e858 | 2019-07-31 20:42:31 +0000 | [diff] [blame^] | 53 | - "-onu_number={{ .Values.onus_per_pon_port }}" |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 54 | --- |
| 55 | apiVersion: apps/v1 |
| 56 | kind: Deployment |
| 57 | metadata: |
| 58 | name: adapter-simulated-onu |
| 59 | namespace: {{ .Release.Namespace }} |
| 60 | spec: |
| 61 | replicas: {{ .Values.replicas.adapter_simulated_onu }} |
| 62 | selector: |
| 63 | matchLabels: |
| 64 | app: adapter-simulated-onu |
| 65 | template: |
| 66 | metadata: |
| 67 | labels: |
| 68 | app: adapter-simulated-onu |
David Bainbridge | 1f88804 | 2019-06-24 18:02:01 +0000 | [diff] [blame] | 69 | app.kubernetes.io/name: "adapter-simulated-onu" |
| 70 | app.kubernetes.io/version: {{ quote .Chart.AppVersion }} |
| 71 | app.kubernetes.io/component: "adapter" |
| 72 | app.kubernetes.io/part-of: "voltha" |
| 73 | app.kubernetes.io/managed-by: {{ quote .Release.Service }} |
| 74 | helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 75 | annotations: |
| 76 | cni: "calico" |
| 77 | spec: |
| 78 | containers: |
| 79 | - name: adapter-simulated-onu |
David Bainbridge | 5cb5d17 | 2019-07-24 02:30:19 +0000 | [diff] [blame] | 80 | image: {{ tpl .Values.images.adapter_simulated_onu.registry . }}{{ tpl .Values.images.adapter_simulated_onu.repository . }}:{{ tpl ( tpl .Values.images.adapter_simulated_onu.tag . ) . }} |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 81 | imagePullPolicy: {{ tpl .Values.images.adapter_simulated_onu.pullPolicy . }} |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 82 | args: |
| 83 | - "/app/simulated_onu" |
David Bainbridge | cd30e54 | 2019-05-31 20:52:56 +0000 | [diff] [blame] | 84 | - "-kafka_adapter_host={{ .Values.services.kafka.adapter.service }}" |
| 85 | - "-kafka_adapter_port={{ .Values.services.kafka.adapter.port }}" |
| 86 | - "-kafka_cluster_host={{ .Values.services.kafka.cluster.service }}" |
| 87 | - "-kafka_cluster_port={{ .Values.services.kafka.cluster.port }}" |
| 88 | - "-kv_store_host={{ .Values.services.etcd.service }}" |
| 89 | - "-kv_store_port={{ .Values.services.etcd.port }}" |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 90 | - "-core_topic=rwcore" |
David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame] | 91 | - "-simulator_topic=simulated_onu" |