d8f6cbe3e3bfd1ba0b93ad4f8e631906ea680909
[ealt-edge.git] / mep / mepserver / mep-basic.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 namespace
17 ---
18 apiVersion: v1
19 kind: Namespace
20 metadata:
21   name: mep
22
23 # persitent volume
24 ---
25 kind: PersistentVolume
26 apiVersion: v1
27 metadata:
28   name: postgres-pv-volume
29   labels:
30     type: local
31     app: postgres
32 spec:
33   storageClassName: manual
34   capacity:
35     storage: 5Gi
36   accessModes:
37     - ReadWriteMany
38   hostPath:
39     path: "/mnt/data"
40
41 # pvc
42 ---
43 kind: PersistentVolumeClaim
44 apiVersion: v1
45 metadata:
46   name: postgres-pv-claim
47   namespace: mep
48   labels:
49     app: postgres
50 spec:
51   storageClassName: manual
52   accessModes:
53     - ReadWriteMany
54   resources:
55     requests:
56       storage: 5Gi