lapee79's Tech Blog

lapee79의 기술 지식 창고.

Kubernetes에서 Local Persistent Volume을 사용하여 local disk 사용

Local Persistent Volume 기능은 Kubernetes 1.14에서 GA 되었습니다. Local Persistent Volume은 한 Kubernetes Node에 직접적으로 장착된 local disk를 가리킵니다. Kubernetes에서 HostPath, LocalVolume 을 통해 local disk를 사용할 수 있습니다. HostPath: 스케쥴링 정보를 가지지 않은 볼륨. 각각의 pod를 한 node에 고정하려고 한다면 pod 정의에 nodeSelector같은 스케쥴링 정보를 설정해야 합니다. LocalVolume: 볼륨 자체적으로 스케쥴링 정보를 가지며, 이 볼륨을 사용하는 pod는 특정 node에 고정할 수 있으므로 데이터 연속성을 보장할 수 있습니다. Local Persistent Volumes 는 표준 PVC 객체를 사용한 local disk에 엑세스를 허용합니다. 더보기