Scott Baker | bdb962b | 2020-04-03 10:53:36 -0700 | [diff] [blame^] | 1 | # Copyright 2018-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 | ---
|
| 16 |
|
| 17 | apiVersion: apps/v1beta2
|
| 18 | kind: Deployment
|
| 19 | metadata:
|
| 20 | name: mock-olt-1
|
| 21 | labels:
|
| 22 | app: mock-olt-1
|
| 23 | chart: mock-olt-1
|
| 24 | spec:
|
| 25 | replicas: 1
|
| 26 | selector:
|
| 27 | matchLabels:
|
| 28 | app: mock-olt-1
|
| 29 | template:
|
| 30 | metadata:
|
| 31 | labels:
|
| 32 | app: mock-olt-1
|
| 33 | spec:
|
| 34 | containers:
|
| 35 | - name: mock-olt-1
|
| 36 | image: opencord/redfish-mockup-server:latest
|
| 37 | imagePullPolicy: Always
|
| 38 | ports:
|
| 39 | - containerPort: 8001
|
| 40 | name: mock-redfish
|
| 41 |
|
| 42 | ---
|
| 43 |
|
| 44 | apiVersion: v1
|
| 45 | kind: Service
|
| 46 | metadata:
|
| 47 | name: mock-olt-1
|
| 48 | spec:
|
| 49 | ports:
|
| 50 | - name: mock-redfish
|
| 51 | port: 8401
|
| 52 | targetPort: 8001
|
| 53 | selector:
|
| 54 | app: mock-olt-1
|
| 55 |
|
| 56 | ---
|
| 57 |
|
| 58 | apiVersion: apps/v1beta2
|
| 59 | kind: Deployment
|
| 60 | metadata:
|
| 61 | name: mock-olt-2
|
| 62 | labels:
|
| 63 | app: mock-olt-2
|
| 64 | chart: mock-olt-2
|
| 65 | spec:
|
| 66 | replicas: 1
|
| 67 | selector:
|
| 68 | matchLabels:
|
| 69 | app: mock-olt-2
|
| 70 | template:
|
| 71 | metadata:
|
| 72 | labels:
|
| 73 | app: mock-olt-2
|
| 74 | spec:
|
| 75 | containers:
|
| 76 | - name: mock-olt-2
|
| 77 | image: opencord/redfish-mockup-server:latest
|
| 78 | imagePullPolicy: Always
|
| 79 | ports:
|
| 80 | - containerPort: 8001
|
| 81 | name: mock-redfish
|
| 82 |
|
| 83 | ---
|
| 84 |
|
| 85 | apiVersion: v1
|
| 86 | kind: Service
|
| 87 | metadata:
|
| 88 | name: mock-olt-2
|
| 89 | spec:
|
| 90 | ports:
|
| 91 | - name: mock-redfish
|
| 92 | port: 8402
|
| 93 | targetPort: 8001
|
| 94 | selector:
|
| 95 | app: mock-olt-2
|
| 96 |
|
| 97 | ---
|
| 98 |
|
| 99 | apiVersion: apps/v1beta2
|
| 100 | kind: Deployment
|
| 101 | metadata:
|
| 102 | name: redfish-importer
|
| 103 | labels:
|
| 104 | app: redfish-importer
|
| 105 | chart: redfish-importer
|
| 106 | spec:
|
| 107 | replicas: 1
|
| 108 | selector:
|
| 109 | matchLabels:
|
| 110 | app: redfish-importer
|
| 111 | template:
|
| 112 | metadata:
|
| 113 | labels:
|
| 114 | app: redfish-importer
|
| 115 | spec:
|
| 116 | containers:
|
| 117 | - name: redfish-importer
|
| 118 | image: opencord/device-management:latest
|
| 119 | imagePullPolicy: Always
|
| 120 | ports:
|
| 121 | - containerPort: 50051
|
| 122 | name: importer
|
| 123 | command: ["./main"]
|
| 124 | args: ["--kafka", "voltha-kafka-0.voltha-kafka-headless.voltha:9092"]
|
| 125 |
|
| 126 | ---
|
| 127 |
|
| 128 | apiVersion: v1
|
| 129 | kind: Service
|
| 130 | metadata:
|
| 131 | name: redfish-importer
|
| 132 | spec:
|
| 133 | ports:
|
| 134 | - name: redfish-importer
|
| 135 | port: 31085
|
| 136 | targetPort: 50051
|
| 137 | selector:
|
| 138 | app: redfish-importer
|
| 139 |
|
| 140 | ---
|
| 141 |
|
| 142 | apiVersion: apps/v1beta2
|
| 143 | kind: Deployment
|
| 144 | metadata:
|
| 145 | name: redfish-demotest
|
| 146 | labels:
|
| 147 | app: redfish-demotest
|
| 148 | chart: redfish-demotest
|
| 149 | spec:
|
| 150 | replicas: 1
|
| 151 | selector:
|
| 152 | matchLabels:
|
| 153 | app: redfish-demotest
|
| 154 | template:
|
| 155 | metadata:
|
| 156 | labels:
|
| 157 | app: redfish-demotest
|
| 158 | spec:
|
| 159 | containers:
|
| 160 | - name: redfish-demotest
|
| 161 | image: opencord/redfish-importer-demotest:latest
|
| 162 | imagePullPolicy: Always
|
| 163 | ports:
|
| 164 | - containerPort: 9999
|
| 165 | name: demotest
|
| 166 | command: ["./demotest"]
|
| 167 | args: ["--kafka", "voltha-kafka-0.voltha-kafka-headless.voltha:9092", "--importer", "redfish-importer:31085"]
|
| 168 |
|
| 169 | ---
|
| 170 |
|
| 171 | apiVersion: v1
|
| 172 | kind: Service
|
| 173 | metadata:
|
| 174 | name: redfish-demotest
|
| 175 | spec:
|
| 176 | ports:
|
| 177 | - name: redfish-demotest
|
| 178 | port: 9999
|
| 179 | targetPort: 9999
|
| 180 | selector:
|
| 181 | app: redfish-demotest
|