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" |
| 61 | imagePullPolicy: IfNotPresent |
| 62 | --- |
| 63 | |
| 64 | # simulated ONU adapter |
| 65 | |
| 66 | apiVersion: v1 |
| 67 | kind: Service |
| 68 | metadata: |
| 69 | name: adapter-simulated-onu |
| 70 | namespace: voltha |
| 71 | spec: |
| 72 | clusterIP: None |
| 73 | selector: |
| 74 | app: adapter-simulated-onu |
| 75 | --- |
| 76 | apiVersion: apps/v1 |
| 77 | kind: Deployment |
| 78 | metadata: |
| 79 | name: adapter-simulated-onu |
| 80 | namespace: voltha |
| 81 | spec: |
| 82 | replicas: 1 |
| 83 | selector: |
| 84 | matchLabels: |
| 85 | app: adapter-simulated-onu |
| 86 | template: |
| 87 | metadata: |
| 88 | labels: |
| 89 | app: adapter-simulated-onu |
| 90 | annotations: |
| 91 | cni: "calico" |
| 92 | spec: |
| 93 | containers: |
| 94 | - name: adapter-simulated-onu |
| 95 | image: voltha-adapter-simulated-onu |
| 96 | env: |
| 97 | - name: NAMESPACE |
| 98 | valueFrom: |
| 99 | fieldRef: |
| 100 | fieldPath: metadata.namespace |
| 101 | args: |
| 102 | - "/app/simulated_onu" |
| 103 | - "--kafka_adapter_host=kafka.$(NAMESPACE).svc.cluster.local" |
| 104 | - "--kafka_adapter_port=9092" |
| 105 | - "--kafka_cluster_host=kafka.$(NAMESPACE).svc.cluster.local" |
| 106 | - "--kafka_cluster_port=9092" |
| 107 | - "--core_topic=rwcore" |
| 108 | - "--simulator_topic=simulated_onu" |
| 109 | imagePullPolicy: IfNotPresent |