postgres on cephfs
This commit is contained in:
parent
f4b26c42c8
commit
cba364d1fc
3 changed files with 28 additions and 1 deletions
|
@ -19,6 +19,7 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 5Gi
|
storage: 5Gi
|
||||||
|
storageClassName: rook-cephfs
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
@ -43,7 +44,7 @@ spec:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: postgres-config
|
name: postgres-config
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/postgresql
|
- mountPath: /var/lib/postgresql/
|
||||||
name: postgresdb
|
name: postgresdb
|
||||||
volumes:
|
volumes:
|
||||||
- name: postgresdb
|
- name: postgresdb
|
||||||
|
|
13
tests/pvc-cephfs.yaml
Normal file
13
tests/pvc-cephfs.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: rbd-cephfs
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
storageClassName: rook-cephfs
|
||||||
|
|
13
tests/pvc-rbd.yaml
Normal file
13
tests/pvc-rbd.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: rbd-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
storageClassName: rook-ceph-block
|
||||||
|
|
Loading…
Reference in a new issue