Added deployment conf for applcm
[ealt-edge.git] / ocd / infra / playbooks / roles / applcm / files / deploy / applcm-broker-deployment.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 # yamllint disable
16 apiVersion: apps/v1
17 kind: Deployment
18 metadata:
19   annotations:
20     kompose.cmd: kompose convert
21     kompose.version: 1.21.0 (992df58d8)
22   creationTimestamp: null
23   labels:
24     io.kompose.service: applcm-broker
25   name: applcm-broker
26 spec:
27   replicas: 1
28   selector:
29     matchLabels:
30       io.kompose.service: applcm-broker
31   strategy: {}
32   template:
33     metadata:
34       annotations:
35         kompose.cmd: kompose convert
36         kompose.version: 1.21.0 (992df58d8)
37       creationTimestamp: null
38       labels:
39         io.kompose.service: applcm-broker
40     spec:
41       containers:
42       - env:
43         - name: ADDRESS
44           value: 0.0.0.0:8081
45         - name: HELM_PLUGIN_PORT
46           value: "50051"
47         - name: KUBERNETES_PLUGIN_PORT
48           value: "50052"
49         - name: LOGFILE_PATH
50           value: /go/release/logfile
51         - name: LOGGER_LEVEL
52           value: info
53         - name: POSTGRES_DATABASE
54           value: mecmdb
55         - name: DBHOST
56           value: postgres-db
57         - name: POSTGRES_PASSWORD
58           value: mecm
59         - name: POSTGRES_ROOT_PASSWORD
60           value: mecm
61         - name: POSTGRES_USER
62           value: mecm
63         - name: PACKAGE_ARTIFACT_PATH
64           value: /Artifacts/Deployment/
65         - name: PACKAGE_PATH
66           value: /go/release/application/packages/
67         - name: APLCM_SSL_MODE
68           value: false
69         - name: CERTIFICATE_PATH
70           value: /go/release/certificates/server.cer
71         - name: KEY_PATH
72           value: /go/release/certificates/server_key.pem
73         image: ealtedge/applcm-broker:latest
74         imagePullPolicy: ""
75         name: applcm-broker
76         ports:
77         - containerPort: 8081
78         resources: {}
79         #volumeMounts:
80           #- mountPath: /go/release/certificates/
81           #  name: server-cert
82       restartPolicy: Always
83       serviceAccountName: ""
84       #volumes:
85         #- name: server-cert
86           #secret:
87            #secretName: applcm-secret
88 status: {}
89
90 # yamllint enable