Browse Source

postgres on cephfs

master
Nico Schottelius 1 year ago
parent
commit
cba364d1fc
  1. 3
      generic/postgres.yaml
  2. 13
      tests/pvc-cephfs.yaml
  3. 13
      tests/pvc-rbd.yaml

3
generic/postgres.yaml

@ -19,6 +19,7 @@ spec:
resources:
requests:
storage: 5Gi
storageClassName: rook-cephfs
---
apiVersion: apps/v1
kind: Deployment
@ -43,7 +44,7 @@ spec:
- configMapRef:
name: postgres-config
volumeMounts:
- mountPath: /var/lib/postgresql
- mountPath: /var/lib/postgresql/
name: postgresdb
volumes:
- name: postgresdb

13
tests/pvc-cephfs.yaml

@ -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

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: rbd-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: rook-ceph-block
Loading…
Cancel
Save