Error handing and execution issue fixed
[ealt-edge.git] / mecm / mepm / applcm / resources / deployment / helm-plugin.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 # helmplugin pod
15 ---
16 apiVersion: apps/v1
17 kind: Deployment
18 metadata:
19   labels:
20     app.name: helmplugin
21   name: helmplugin
22 spec:
23   replicas: 1
24   selector:
25     matchLabels:
26       app.name: helmplugin
27   template:
28     metadata:
29       labels:
30         app.name: helmplugin
31     spec:
32       containers:
33         - image: ealtedge/helmplugin:latest
34           imagePullPolicy: IfNotPresent
35           name: helmplugin
36           ports:
37             - containerPort: 50051
38           env:
39             - name: CERTIFICATE_PATH
40             - name: CHART_PATH
41               value: /go/release/charts/
42             - name: HELM_PLUGIN_PORT
43               value: "50051"
44             - name: KEY_PATH
45             - name: KUBECONFIG_DIR_PATH
46               value: /go/release/kubeconfig/
47             - name: LOGFILE_PATH
48               value: /go/release/logfile
49             - name: LOGGER_LEVEL
50               value: info
51             - name: RELEASE_NAMESPACE
52               value: default
53 # helmplugin service
54 ---
55 apiVersion: v1
56 kind: Service
57 metadata:
58   labels:
59     app.service: helmplugin
60   name: helmplugin
61 spec:
62   ports:
63     - name: "50051"
64       port: 50051
65       targetPort: 50051
66   selector:
67     app.name: helmplugin
68 status:
69   loadBalancer: {}