Stephane Barbarie | 439dc39 | 2019-01-21 13:55:39 -0500 | [diff] [blame] | 1 | # Copyright 2019 the original author or authors. |
| 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 | # simulated OLT adapter |
| 16 | |
| 17 | apiVersion: v1 |
| 18 | kind: Service |
| 19 | metadata: |
| 20 | name: adapter-simulated-olt |
| 21 | namespace: voltha |
| 22 | spec: |
| 23 | clusterIP: None |
| 24 | selector: |
| 25 | app: adapter-simulated-olt |
| 26 | --- |
| 27 | apiVersion: apps/v1 |
| 28 | kind: Deployment |
| 29 | metadata: |
| 30 | name: adapter-simulated-olt |
| 31 | namespace: voltha |
| 32 | spec: |
| 33 | replicas: 1 |
| 34 | selector: |
| 35 | matchLabels: |
| 36 | app: adapter-simulated-olt |
| 37 | template: |
| 38 | metadata: |
| 39 | labels: |
| 40 | app: adapter-simulated-olt |
| 41 | annotations: |
| 42 | cni: "calico" |
| 43 | spec: |
| 44 | containers: |
| 45 | - name: adapter-simulated-olt |
| 46 | image: voltha-adapter-simulated-olt |
| 47 | env: |
| 48 | - name: NAMESPACE |
| 49 | valueFrom: |
| 50 | fieldRef: |
| 51 | fieldPath: metadata.namespace |
| 52 | args: |
| 53 | - "/app/simulated_olt" |
| 54 | - "--kafka_adapter_host=kafka.$(NAMESPACE).svc.cluster.local" |
| 55 | - "--kafka_adapter_port=9092" |
| 56 | - "--kafka_cluster_host=kafka.$(NAMESPACE).svc.cluster.local" |
| 57 | - "--kafka_cluster_port=9092" |
| 58 | - "--core_topic=rwcore" |
| 59 | - "--simulator_topic=simulated_olt" |
| 60 | - "--onu_number=1" |
Richard Jankowski | 00a0466 | 2019-02-05 12:18:53 -0500 | [diff] [blame^] | 61 | - "--kv_store_host=etcd.$(NAMESPACE).svc.cluster.local" |
| 62 | - "--kv_store_port=2379" |
Stephane Barbarie | 439dc39 | 2019-01-21 13:55:39 -0500 | [diff] [blame] | 63 | imagePullPolicy: IfNotPresent |
| 64 | --- |
| 65 | |
| 66 | # simulated ONU adapter |
| 67 | |
| 68 | apiVersion: v1 |
| 69 | kind: Service |
| 70 | metadata: |
| 71 | name: adapter-simulated-onu |
| 72 | namespace: voltha |
| 73 | spec: |
| 74 | clusterIP: None |
| 75 | selector: |
| 76 | app: adapter-simulated-onu |
| 77 | --- |
| 78 | apiVersion: apps/v1 |
| 79 | kind: Deployment |
| 80 | metadata: |
| 81 | name: adapter-simulated-onu |
| 82 | namespace: voltha |
| 83 | spec: |
| 84 | replicas: 1 |
| 85 | selector: |
| 86 | matchLabels: |
| 87 | app: adapter-simulated-onu |
| 88 | template: |
| 89 | metadata: |
| 90 | labels: |
| 91 | app: adapter-simulated-onu |
| 92 | annotations: |
| 93 | cni: "calico" |
| 94 | spec: |
| 95 | containers: |
| 96 | - name: adapter-simulated-onu |
| 97 | image: voltha-adapter-simulated-onu |
| 98 | env: |
| 99 | - name: NAMESPACE |
| 100 | valueFrom: |
| 101 | fieldRef: |
| 102 | fieldPath: metadata.namespace |
| 103 | args: |
| 104 | - "/app/simulated_onu" |
| 105 | - "--kafka_adapter_host=kafka.$(NAMESPACE).svc.cluster.local" |
| 106 | - "--kafka_adapter_port=9092" |
| 107 | - "--kafka_cluster_host=kafka.$(NAMESPACE).svc.cluster.local" |
| 108 | - "--kafka_cluster_port=9092" |
| 109 | - "--core_topic=rwcore" |
| 110 | - "--simulator_topic=simulated_onu" |
Richard Jankowski | 00a0466 | 2019-02-05 12:18:53 -0500 | [diff] [blame^] | 111 | - "--kv_store_host=etcd.$(NAMESPACE).svc.cluster.local" |
| 112 | - "--kv_store_port=2379" |
Stephane Barbarie | 439dc39 | 2019-01-21 13:55:39 -0500 | [diff] [blame] | 113 | imagePullPolicy: IfNotPresent |