Skip to content

Commit

Permalink
Switched PV to ReadWriteOnce
Browse files Browse the repository at this point in the history
  • Loading branch information
rofrano committed Apr 8, 2024
1 parent f6bdcba commit b3ace96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions k8s/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ metadata:
name: postgres-pvc
spec:
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: ""
storageClassName: "default"

---
apiVersion: v1
Expand Down
4 changes: 2 additions & 2 deletions k8s/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ spec:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
- ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle
hostPath:
path: /data/pv0001
storageClassName: ""
storageClassName: "default"

0 comments on commit b3ace96

Please sign in to comment.