Merge "mecm-mepm uninstall playbook added"
[ealt-edge.git] / mep / mepserver / mep-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
16 # mep pod
17 ---
18 apiVersion: v1
19 kind: Pod
20 metadata:
21   name: mep
22   namespace: mep
23   labels:
24     app: mep
25 spec:
26   containers:
27     - image: ealtedge/mep:latest
28       imagePullPolicy: IfNotPresent
29       name: mep-pod
30       ports:
31         - containerPort: 8088
32         - containerPort: 8443
33       env:
34         - name: SSL_ROOT
35           value: "/etc/mepssl"
36         - name: MEP_SSL_MODE
37           value: "0"
38       #volumeMounts:
39         #- name: mepssl
40           #mountPath: "/etc/mepssl"
41           #readOnly: true
42   #volumes:
43     #- name: mepssl
44       #secret:
45         #secretName: mepssl-secret
46
47
48 # mep service
49 ---
50 apiVersion: v1
51 kind: Service
52 metadata:
53   name: mep-service
54   namespace: mep
55 spec:
56   selector:
57     app: mep
58   type: NodePort
59   ports:
60     - port: 8088
61       name: mep-port
62       nodePort: 30088
63     - port: 8443
64       name: mep-https-port
65       nodePort: 30443