Scott Baker | bdb962b | 2020-04-03 10:53:36 -0700 | [diff] [blame] | 1 | # Copyright 2018-present Open Networking Foundation
|
Dinesh Belwalkar | 6c0bc75 | 2020-04-24 23:47:53 +0000 | [diff] [blame] | 2 | # Copyright 2018-present Edgecore Networks Corporation
|
Scott Baker | bdb962b | 2020-04-03 10:53:36 -0700 | [diff] [blame] | 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 |
|
| 18 | apiVersion: apps/v1beta2
|
| 19 | kind: Deployment
|
| 20 | metadata:
|
Scott Baker | bdb962b | 2020-04-03 10:53:36 -0700 | [diff] [blame] | 21 | name: redfish-importer
|
| 22 | labels:
|
| 23 | app: redfish-importer
|
| 24 | chart: redfish-importer
|
| 25 | spec:
|
| 26 | replicas: 1
|
| 27 | selector:
|
| 28 | matchLabels:
|
| 29 | app: redfish-importer
|
| 30 | template:
|
| 31 | metadata:
|
| 32 | labels:
|
| 33 | app: redfish-importer
|
| 34 | spec:
|
| 35 | containers:
|
| 36 | - name: redfish-importer
|
Scott Baker | 5d03e17 | 2020-04-10 14:56:20 -0700 | [diff] [blame] | 37 | image: opencord/device-management:master
|
Scott Baker | bdb962b | 2020-04-03 10:53:36 -0700 | [diff] [blame] | 38 | imagePullPolicy: Always
|
| 39 | ports:
|
| 40 | - containerPort: 50051
|
| 41 | name: importer
|
| 42 | command: ["./main"]
|
Scott Baker | d67af6c | 2020-06-25 08:20:40 -0700 | [diff] [blame^] | 43 | args: ["--kafka", "kafka:9092"]
|
Scott Baker | bdb962b | 2020-04-03 10:53:36 -0700 | [diff] [blame] | 44 |
|
| 45 | ---
|
| 46 |
|
| 47 | apiVersion: v1
|
| 48 | kind: Service
|
| 49 | metadata:
|
| 50 | name: redfish-importer
|
| 51 | spec:
|
| 52 | ports:
|
| 53 | - name: redfish-importer
|
| 54 | port: 31085
|
| 55 | targetPort: 50051
|
| 56 | selector:
|
| 57 | app: redfish-importer
|
| 58 |
|
| 59 | ---
|
| 60 |
|
| 61 | apiVersion: apps/v1beta2
|
| 62 | kind: Deployment
|
| 63 | metadata:
|
| 64 | name: redfish-demotest
|
| 65 | labels:
|
| 66 | app: redfish-demotest
|
| 67 | chart: redfish-demotest
|
| 68 | spec:
|
| 69 | replicas: 1
|
| 70 | selector:
|
| 71 | matchLabels:
|
| 72 | app: redfish-demotest
|
| 73 | template:
|
| 74 | metadata:
|
| 75 | labels:
|
| 76 | app: redfish-demotest
|
| 77 | spec:
|
| 78 | containers:
|
| 79 | - name: redfish-demotest
|
Scott Baker | 5d03e17 | 2020-04-10 14:56:20 -0700 | [diff] [blame] | 80 | image: opencord/redfish-importer-demotest:master
|
Scott Baker | bdb962b | 2020-04-03 10:53:36 -0700 | [diff] [blame] | 81 | imagePullPolicy: Always
|
| 82 | ports:
|
| 83 | - containerPort: 9999
|
| 84 | name: demotest
|
| 85 | command: ["./demotest"]
|
Scott Baker | d67af6c | 2020-06-25 08:20:40 -0700 | [diff] [blame^] | 86 | args: ["--kafka", "kafka:9092", "--importer", "redfish-importer:31085"]
|
Scott Baker | bdb962b | 2020-04-03 10:53:36 -0700 | [diff] [blame] | 87 |
|
| 88 | ---
|
| 89 |
|
| 90 | apiVersion: v1
|
| 91 | kind: Service
|
| 92 | metadata:
|
| 93 | name: redfish-demotest
|
| 94 | spec:
|
| 95 | ports:
|
| 96 | - name: redfish-demotest
|
| 97 | port: 9999
|
| 98 | targetPort: 9999
|
| 99 | selector:
|
| 100 | app: redfish-demotest
|