k8s deployment yaml for applcm
[ealt-edge.git] / mecm / mepm / applcm / resources / deployment / applcm-broker.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 # applcm pod
15 ---
16 apiVersion: apps/v1
17 kind: Deployment
18 metadata:
19   labels:
20     app.name: applcm-broker
21   name: applcm-broker
22 spec:
23   replicas: 1
24   selector:
25     matchLabels:
26       app.name: applcm-broker
27   template:
28     metadata:
29       labels:
30         app.name: applcm-broker
31     spec:
32       containers:
33         - image: ealtedge/applcm-broker:latest
34           imagePullPolicy: IfNotPresent
35           name: applcm-broker
36           ports:
37             - containerPort: 8081
38           env:
39             - name: ADDRESS
40               value: 0.0.0.0:8081
41             - name: HELM_PLUGIN_PORT
42               value: "50051"
43             - name: KUBERNETES_PLUGIN_PORT
44               value: "50052"
45             - name: LOGFILE_PATH
46               value: /go/release/logfile
47             - name: LOGGER_LEVEL
48               value: info
49             - name: MYSQL_DATABASE
50               value: db
51             - name: MYSQL_PASSWORD
52               value: password
53             - name: MYSQL_ROOT_PASSWORD
54               value: password
55             - name: MYSQL_USER
56               value: root
57             - name: PACKAGE_ARTIFACT_PATH
58               value: /Artifacts/Deployment/
59             - name: PACKAGE_PATH
60               value: /go/release/application/packages/
61 # applcm service
62 ---
63 apiVersion: v1
64 kind: Service
65 metadata:
66   annotations:
67   labels:
68     app.service: applcm-broker
69   name: applcm-broker