Some bug fixes
[ealt-edge.git] / ocd / infra / playbooks / roles / applcm / files / deploy / postgres-db-pvc.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 # persistent volume
17 ---
18 kind: PersistentVolume
19 apiVersion: v1
20 metadata:
21   name: postgres-pv-volume
22   labels:
23     type: local
24     app: postgres
25 spec:
26   storageClassName: manual
27   capacity:
28     storage: 5Gi
29   accessModes:
30     - ReadWriteMany
31   hostPath:
32     path: "/data"
33
34 # pvc
35 ---
36 kind: PersistentVolumeClaim
37 apiVersion: v1
38 metadata:
39   name: postgres-pv-claim
40   namespace: default
41   labels:
42     app: postgres
43 spec:
44   storageClassName: manual
45   accessModes:
46     - ReadWriteMany
47   resources:
48     requests:
49       storage: 5Gi