X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=example-apps%2FROBO%2Fretail_app%2FInventory-be-k8s.yaml;fp=example-apps%2FROBO%2Fretail_app%2FInventory-be-k8s.yaml;h=9c054891c61434b06e84f8c68b105268c563f4f6;hb=8be0e289aa30f9832b916f14d8821c9c9fe3b62e;hp=0000000000000000000000000000000000000000;hpb=19a4ba83ae8dcec00891c451418ff691c35eab93;p=ealt-edge.git diff --git a/example-apps/ROBO/retail_app/Inventory-be-k8s.yaml b/example-apps/ROBO/retail_app/Inventory-be-k8s.yaml new file mode 100644 index 0000000..9c05489 --- /dev/null +++ b/example-apps/ROBO/retail_app/Inventory-be-k8s.yaml @@ -0,0 +1,58 @@ +# 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