Persistent Volumes
- PV와 PVC의 Access Mode가 같지 않으면 서로 bound상태로 변경되지 않는다.
- PV가 PVC보다 storage 용량이 더 클 때 PVC가 PV에 bound되면 available storage가 PV만큼 설정된다.
- PV와 PVC가 Bound상태이고, PVC가 Pod의 volume으로 사용되고 있을 때 PVC는 삭제되지 않는다.
- Pod삭제 후 PVC 삭제가 가능하고, PVC가 삭제가 되면 PV의 상태는 Released로 변경된다.
Storage Class
- Storage Class의 Volume Binding Mode가 immediate면 dynamic binding 을 지원한다. 이 설정의 default값이기도 하다. Dynamic Binding 을 지원하지 않는 설정은 WaitForFirstConsumer 이다.
- https://kubernetes.io/ko/docs/concepts/storage/storage-classes/#local
- The Storage Class called local-storage makes use of VolumeBindingMode set to WaitForFirstConsumer. This will delay the binding and provisioning of a PersistentVolume until a Pod using the PersistentVolumeClaim is created.
'CKAD' 카테고리의 다른 글
Admission Controller (0) | 2022.04.26 |
---|---|
Practice Test (0) | 2022.04.26 |
Lightning Lab (0) | 2022.04.22 |
4. Pod Design (0) | 2022.04.19 |
2. Configuration (0) | 2022.04.18 |