Dab tsi yog PV thiab PVC hauv Kubernetes?
Dab tsi yog PV thiab PVC hauv Kubernetes?

Video: Dab tsi yog PV thiab PVC hauv Kubernetes?

Video: Dab tsi yog PV thiab PVC hauv Kubernetes?
Video: mus yuav lawv tus qaib ntau zoo las loj heev 2.500.000kip los tus cais poj/30/3/2022/ 2024, Kaum ib hlis
Anonim

PVs yog ntim plugins zoo li Volumes tab sis muaj lub neej voj voog ywj pheej ntawm ib tus neeg pod uas siv cov PV . Cov khoom API no ntes cov ntsiab lus ntawm kev siv ntawm qhov chaw cia, yog tias NFS, iSCSI, lossis huab-tus muab kev cia tshwj xeeb. A PersistentVolumeClaim ( PVC ) yog kev thov rau kev khaws cia los ntawm tus neeg siv.

Tib neeg kuj nug, qhov txawv ntawm PV thiab PVC yog dab tsi?

PVCs yog thov rau cov peev txheej thiab tseem ua raws li kev thov nyiaj rau cov peev txheej. Yog li lub ntim tsis tu ncua ( PV ) yog lub ntim "lub cev" ntawm lub tshuab tswv tsev uas khaws koj cov ntaub ntawv tsis tu ncua. Ib daim ntawv thov ntim tsis tu ncua ( PVC ) yog kev thov rau lub platform los tsim ib qho PV rau koj, thiab koj muab PVs rau koj cov pods ntawm a PVC.

Ib tug kuj yuav nug, dab tsi yog qhov ntim tsis tu ncua? Persistent Volumes tsuas yog ib feem ntawm khaws cia hauv koj pawg. Zoo ib yam li koj muaj peev xwm disk hauv server, a tsis tu ncua ntim muab khaws cia cov khoom siv rau cov khoom hauv pawg. Ntawm cov ntsiab lus yooj yim tshaj plaws koj tuaj yeem xav txog PV li disk drive.

Ib yam li ntawd, koj tuaj yeem nug, PV hauv Kubernetes yog dab tsi?

Lub ntim tsis tu ncua ( PV ) yog ib pab pawg thoob plaws uas koj tuaj yeem siv los khaws cov ntaub ntawv hauv txoj hauv kev uas nws pheej mus dhau lub neej ntawm lub pod. Hom ntawm PV muaj nyob rau hauv koj Kubernetes pawg nyob ntawm ib puag ncig (on-prem lossis pej xeem huab).

Yuav ua li cas persistent ntim thov ua haujlwm?

A persistent ntim thov (PVC) yog thov rau khaws cia , zoo ib yam rau yuav ua li cas lub pod thov suav cov peev txheej. PVC muab ib txheej abstraction rau hauv qab khaws cia . Piv txwv li, tus thawj tswj hwm ua tau tsim ib tug xov tooj ntawm static tsis tu ncua ntim (PVs) li ua tau tom qab raug khi rau ib los yog ntau tshaj persistent ntim thov.

Pom zoo: