Back to Meshery

8d6526e4 3c85 44c4 Bf2b B45592fd880d

docs/_catalog/deployment/8d6526e4-3c85-44c4-bf2b-b45592fd880d.md

1.0.03.1 KB
Original Source

%0A%0A%23%23%23%20%E2%9C%85%20Case%201%3A%20Dynamic%20PVC%20Binding%20(Most%20Common)%0A%0ALabel%2FTitle%3A%0A%F0%9F%93%A6%20Dynamic%20Volume%20Provisioning%0A%0ADescription%3A%0AThe%20Deployment%20references%20a%20PVC%20that%20dynamically%20provisions%20a%20PersistentVolume%20using%20a%20StorageClass.%20This%20is%20the%20standard%20and%20most%20portable%20way%20to%20request%20persistent%20storage%20in%20Kubernetes.%0A%0AKey%20Notes%3A%0A%0A*%20No%20need%20to%20pre-create%20a%20PV.%0A*%20PVC%20requests%20storage%20using%20a%20%60storageClassName%60.%0A*%20Backed%20by%20cloud%20or%20CSI%20volumes%20(e.g.%2C%20EBS%2C%20Ceph%2C%20GCE%20PD).%0A%0A---%0A%0A%23%23%23%20%E2%9C%85%20Case%202%3A%20Static%20Binding%20(Manually%20Pre-bound%20PV)%0A%0ALabel%2FTitle%3A%0A%F0%9F%93%A6%20Statically%20Pre-bound%20Volume%0A%0ADescription%3A%0AA%20PersistentVolume%20is%20manually%20created%20with%20a%20%60claimRef%60%20that%20points%20to%20a%20specific%20PVC.%20This%20PVC%20is%20then%20used%20by%20a%20Deployment.%20This%20setup%20is%20used%20when%20the%20underlying%20storage%20is%20already%20provisioned%2C%20such%20as%20an%20NFS%20export%20or%20disk%20device.%0A%0AKey%20Notes%3A%0A%0A*%20The%20%60PersistentVolume%60%20and%20%60PersistentVolumeClaim%60%20must%20match%20in%20size%2C%20access%20mode%2C%20etc.%0A*%20Binding%20is%20static%20and%20happens%20only%20if%20names%20and%20selectors%20match.%0A*%20Useful%20in%20clusters%20with%20manual%20or%20legacy%20provisioning%20workflows.%0A%0A---%0A%0A%23%23%23%20%E2%9C%85%20Case%203%3A%20Shared%20Volume%20(PVC%20Used%20by%20Multiple%20Pods)%0A%0ALabel%2FTitle%3A%0A%F0%9F%93%82%20Shared%20Volume%20Claim%0A%0ADescription%3A%0AMultiple%20Deployments%20reference%20the%20same%20PVC%2C%20allowing%20them%20to%20share%20data.%20This%20setup%20is%20only%20valid%20when%20the%20backing%20PersistentVolume%20supports%20%60ReadWriteMany%60%20or%20%60ReadOnlyMany%60.%0A%0AKey%20Notes%3A%0A%0A*%20PVC%20must%20have%20%60accessModes%3A%20%5BReadWriteMany%5D%60.%0A*%20PV%20type%20must%20support%20multiple%20mounts%20(e.g.%2C%20NFS%2C%20CephFS).%0A*%20Suitable%20for%20logs%2C%20shared%20configs%2C%20or%20caches.%0A%0A---%0A%0A%23%23%23%20%F0%9F%93%98%20General%20Relationships%0A%0APod%2FDeployment%20%E2%86%92%20PVC%3A%0AUses%20the%20PVC%20as%20a%20volume%20via%20%60volumeMounts%60%20and%20%60volumes.persistentVolumeClaim.claimName%60.%0A%0APVC%20%E2%86%92%20PV%3A%0APVC%20gets%20bound%20to%20a%20matching%20PV%20either%20dynamically%20(via%20%60StorageClass%60)%20or%20statically%20(via%20%60claimRef%60).%0A%0APV%20%E2%86%92%20Storage%20Backend%3A%0APV%20is%20the%20abstraction%20over%20physical%20or%20virtual%20storage%20(disk%2C%20cloud%20volume%2C%20NFS%2C%20etc).%0A%0A---%0A patternCaveats: |