Scott Baker | e0382b8 | 2020-05-01 14:53:45 -0700 | [diff] [blame] | 1 | # 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 |
|
Matteo Scandolo | 3a0ec85 | 2021-04-19 10:45:02 -0700 | [diff] [blame^] | 18 | apiVersion: apps/v1
|
Scott Baker | e0382b8 | 2020-05-01 14:53:45 -0700 | [diff] [blame] | 19 | kind: Deployment
|
| 20 | metadata:
|
| 21 | name: mock-olt-1
|
| 22 | labels:
|
| 23 | app: mock-olt-1
|
| 24 | chart: mock-olt-1
|
| 25 | spec:
|
| 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 |
|
| 45 | apiVersion: v1
|
| 46 | kind: Service
|
| 47 | metadata:
|
| 48 | name: mock-olt-1
|
| 49 | spec:
|
| 50 | ports:
|
| 51 | - name: mock-redfish
|
| 52 | port: 8401
|
| 53 | targetPort: 8001
|
| 54 | selector:
|
| 55 | app: mock-olt-1
|
| 56 |
|
| 57 | ---
|
| 58 |
|
Matteo Scandolo | 3a0ec85 | 2021-04-19 10:45:02 -0700 | [diff] [blame^] | 59 | apiVersion: apps/v1
|
Scott Baker | e0382b8 | 2020-05-01 14:53:45 -0700 | [diff] [blame] | 60 | kind: Deployment
|
| 61 | metadata:
|
| 62 | name: mock-olt-2
|
| 63 | labels:
|
| 64 | app: mock-olt-2
|
| 65 | chart: mock-olt-2
|
| 66 | spec:
|
| 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 |
|
| 86 | apiVersion: v1
|
| 87 | kind: Service
|
| 88 | metadata:
|
| 89 | name: mock-olt-2
|
| 90 | spec:
|
| 91 | ports:
|
| 92 | - name: mock-redfish
|
| 93 | port: 8402
|
| 94 | targetPort: 8001
|
| 95 | selector:
|
| 96 | app: mock-olt-2
|