EG version upgrade to 1.3
[ealt-edge.git] / example-apps / ROBO / retail_app / Inventory-be-k8s.yaml
1 # Copyright 2020 Huawei Technologies Co., Ltd.
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 apiVersion: apps/v1
16 kind: Deployment
17 metadata:
18   name: inventory-be
19 spec:
20   replicas: 1
21   selector:
22     matchLabels:
23       app: inventory
24   template:
25     metadata:
26       labels:
27         app: inventory
28     spec:
29       containers:
30         - name: inventory-be
31           image: ealtedge/inventory-be
32           env:
33             - name: INFLUXDB_IP
34               value: "159.138.33.54"
35             - name: INFLUXDB_PORT
36               value: "30944"
37             - name: OBJ_DET_SER_IP
38               value: "159.138.33.54"
39             - name: OBJ_DET_SER_PORT
40               value: "30093"
41           ports:
42             - containerPort: 9995
43
44
45 # backup-be serice
46 ---
47 apiVersion: v1
48 kind: Service
49 metadata:
50   name: inventory-be
51 spec:
52   selector:
53     app: inventory
54   type: NodePort
55   ports:
56     - port: 9995
57       name: service-port
58       nodePort: 30092