Richard Jankowski | 1201bd3 | 2018-10-25 11:44:53 -0400 | [diff] [blame] | 1 | # Copyright 2018 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 | # Ponsim OLT adapter |
| 16 | |
| 17 | apiVersion: v1 |
| 18 | kind: Service |
| 19 | metadata: |
| 20 | name: adapter-ponsim-olt |
| 21 | namespace: voltha |
| 22 | spec: |
| 23 | clusterIP: None |
| 24 | selector: |
| 25 | app: adapter-ponsim-olt |
| 26 | --- |
| 27 | apiVersion: apps/v1 |
| 28 | kind: Deployment |
| 29 | metadata: |
| 30 | name: adapter-ponsim-olt |
| 31 | namespace: voltha |
| 32 | spec: |
| 33 | replicas: 1 |
| 34 | selector: |
| 35 | matchLabels: |
| 36 | app: adapter-ponsim-olt |
| 37 | template: |
| 38 | metadata: |
| 39 | labels: |
| 40 | app: adapter-ponsim-olt |
| 41 | annotations: |
| 42 | cni: "calico" |
| 43 | spec: |
| 44 | containers: |
| 45 | - name: adapter-ponsim-olt |
| 46 | image: voltha-adapter-ponsim-olt |
| 47 | env: |
| 48 | - name: NAMESPACE |
| 49 | valueFrom: |
| 50 | fieldRef: |
| 51 | fieldPath: metadata.namespace |
| 52 | args: |
Richard Jankowski | ab8e253 | 2018-11-30 16:17:00 -0500 | [diff] [blame] | 53 | - "/voltha/python/adapters/ponsim_olt/main.py" |
Richard Jankowski | 1201bd3 | 2018-10-25 11:44:53 -0400 | [diff] [blame] | 54 | - "-v" |
| 55 | - "--name=ponsim_olt" |
| 56 | - "--kafka_adapter=kafka.$(NAMESPACE).svc.cluster.local:9092" |
| 57 | - "--kafka_cluster=kafka.$(NAMESPACE).svc.cluster.local:9092" |
| 58 | - "--core_topic=rwcore" |
| 59 | imagePullPolicy: IfNotPresent |
| 60 | --- |
| 61 | |
| 62 | # Ponsim ONU adapter |
| 63 | |
| 64 | apiVersion: v1 |
| 65 | kind: Service |
| 66 | metadata: |
| 67 | name: adapter-ponsim-onu |
| 68 | namespace: voltha |
| 69 | spec: |
| 70 | clusterIP: None |
| 71 | selector: |
| 72 | app: adapter-ponsim-onu |
| 73 | --- |
| 74 | apiVersion: apps/v1 |
| 75 | kind: Deployment |
| 76 | metadata: |
| 77 | name: adapter-ponsim-onu |
| 78 | namespace: voltha |
| 79 | spec: |
| 80 | replicas: 1 |
| 81 | selector: |
| 82 | matchLabels: |
| 83 | app: adapter-ponsim-onu |
| 84 | template: |
| 85 | metadata: |
| 86 | labels: |
| 87 | app: adapter-ponsim-onu |
| 88 | annotations: |
| 89 | cni: "calico" |
| 90 | spec: |
| 91 | containers: |
| 92 | - name: adapter-ponsim-onu |
| 93 | image: voltha-adapter-ponsim-onu |
| 94 | env: |
| 95 | - name: NAMESPACE |
| 96 | valueFrom: |
| 97 | fieldRef: |
| 98 | fieldPath: metadata.namespace |
| 99 | args: |
Richard Jankowski | ab8e253 | 2018-11-30 16:17:00 -0500 | [diff] [blame] | 100 | - "/voltha/python/adapters/ponsim_onu/main.py" |
Richard Jankowski | 1201bd3 | 2018-10-25 11:44:53 -0400 | [diff] [blame] | 101 | - "-v" |
| 102 | - "--name=ponsim_onu" |
| 103 | - "--kafka_adapter=kafka.$(NAMESPACE).svc.cluster.local:9092" |
| 104 | - "--kafka_cluster=kafka.$(NAMESPACE).svc.cluster.local:9092" |
| 105 | - "--core_topic=rwcore" |
| 106 | imagePullPolicy: IfNotPresent |