Last active
June 7, 2022 11:48
-
-
Save a-patel/c87622890a39d436b4fe7028b269ed5e to your computer and use it in GitHub Desktop.
Kubernetes - Storage - Persistent Volumes (PV)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: myapp-mongo-pv | |
spec: | |
capacity: | |
storage: 1Gi | |
volumeMode: Filesystem | |
accessModes: | |
- ReadWriteOnce | |
storageClassName: myapp-sc | |
# persistentVolumeReclaimPolicy: Retain # StorageClass has a reclaim policy default so it'll be "inherited" by the PV | |
mountOptions: | |
- hard | |
- nfsvers=4.1 | |
nfs: | |
path: /tmp | |
server: 172.17.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment