+++ /dev/null
-# Copyright 2020 Huawei Technologies Co., Ltd.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: inventory-be
-spec:
- replicas: 1
- selector:
- matchLabels:
- app: inventory
- template:
- metadata:
- labels:
- app: inventory
- spec:
- containers:
- - name: inventory-be
- image: ealtedge/inventory-be
- env:
- - name: INFLUXDB_IP
- value: "159.138.33.54"
- - name: INFLUXDB_PORT
- value: "30944"
- - name: OBJ_DET_SER_IP
- value: "159.138.33.54"
- - name: OBJ_DET_SER_PORT
- value: "30093"
- ports:
- - containerPort: 9995
-
-
-# backup-be serice
----
-apiVersion: v1
-kind: Service
-metadata:
- name: inventory-be
-spec:
- selector:
- app: inventory
- type: NodePort
- ports:
- - port: 9995
- name: service-port
- nodePort: 30092