blob: 9000a105fb7efc0c7fc4675291452d4f9484fb0c [file] [log] [blame]
Scott Bakere0382b82020-05-01 14:53:45 -07001# Copyright 2018-present Open Networking Foundation
2# Copyright 2018-present Edgecore Networks Corporation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16---
17
18apiVersion: apps/v1beta2
19kind: Deployment
20metadata:
21 name: mock-olt-1
22 labels:
23 app: mock-olt-1
24 chart: mock-olt-1
25spec:
26 replicas: 1
27 selector:
28 matchLabels:
29 app: mock-olt-1
30 template:
31 metadata:
32 labels:
33 app: mock-olt-1
34 spec:
35 containers:
36 - name: mock-olt-1
37 image: opencord/redfish-mockup-server:master
38 imagePullPolicy: Always
39 ports:
40 - containerPort: 8001
41 name: mock-redfish
42
43---
44
45apiVersion: v1
46kind: Service
47metadata:
48 name: mock-olt-1
49spec:
50 ports:
51 - name: mock-redfish
52 port: 8401
53 targetPort: 8001
54 selector:
55 app: mock-olt-1
56
57---
58
59apiVersion: apps/v1beta2
60kind: Deployment
61metadata:
62 name: mock-olt-2
63 labels:
64 app: mock-olt-2
65 chart: mock-olt-2
66spec:
67 replicas: 1
68 selector:
69 matchLabels:
70 app: mock-olt-2
71 template:
72 metadata:
73 labels:
74 app: mock-olt-2
75 spec:
76 containers:
77 - name: mock-olt-2
78 image: opencord/redfish-mockup-server:master
79 imagePullPolicy: Always
80 ports:
81 - containerPort: 8001
82 name: mock-redfish
83
84---
85
86apiVersion: v1
87kind: Service
88metadata:
89 name: mock-olt-2
90spec:
91 ports:
92 - name: mock-redfish
93 port: 8402
94 targetPort: 8001
95 selector:
96 app: mock-olt-2