개요
- 쿠버네티스 Persistent Volume (PV)
- 쿠버네티스 영구볼륨
- 프로비저닝 방식 2가지: Static, Dynamic
hostPath
apiVersion: v1
kind: PersistentVolume
metadata:
name: hostpath-pv
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /mnt/data
nfs
apiVersion: v1
kind: PersistentVolume
metadata:
name: mypv
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle
storageClassName: slow
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: /tmp
server: 172.17.0.2
같이 보기
- kubectl get pv
- 쿠버네티스 PVC
- 쿠버네티스 Volume
- 쿠버네티스 Storage Class
- 쿠버네티스 PV 액세스 모드
- 쿠버네티스 PV 재요청 정책
- 쿠버네티스 PV - NFS 예시
- 쿠버네티스 PV - vSphere 예시
- 쿠버네티스 PV - AWS EBS 예시
- 쿠버네티스 PV - GCE PD 예시
- 쿠버네티스 동적 볼륨 프로비저닝