0
0
Kubernetesdevops~5 mins

PersistentVolumeClaim (PVC) definition in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a PersistentVolumeClaim (PVC) in Kubernetes?
A PersistentVolumeClaim (PVC) is a request for storage by a user. It allows pods to claim storage resources without knowing the details of the underlying storage.
Click to reveal answer
beginner
Which key fields are required in a basic PVC YAML definition?
apiVersion, kind, metadata (name), and spec (accessModes, resources.requests.storage).
Click to reveal answer
intermediate
What does the accessModes field in a PVC specify?
It specifies how the volume can be mounted. Common values are ReadWriteOnce, ReadOnlyMany, and ReadWriteMany.
Click to reveal answer
intermediate
How does a PVC relate to a PersistentVolume (PV)?
A PVC requests storage, and Kubernetes binds it to a matching PersistentVolume (PV) that provides the actual storage.
Click to reveal answer
intermediate
What happens if no matching PersistentVolume is available for a PVC?
The PVC stays in a pending state until a suitable PersistentVolume is available or dynamically provisioned.
Click to reveal answer
Which field in a PVC YAML defines the amount of storage requested?
Aspec.resources.requests.storage
Bmetadata.name
Cspec.accessModes
DapiVersion
What does the access mode ReadWriteOnce mean in a PVC?
AThe volume can be mounted as read-only by many nodes
BThe volume can be mounted as read-write by a single node
CThe volume can be mounted as read-write by many nodes
DThe volume is read-only and cannot be mounted
If a PVC is created but no matching PV exists, what is the PVC status?
AAvailable
BBound
CPending
DReleased
Which Kubernetes object does a PVC bind to?
APod
BConfigMap
CNamespace
DPersistentVolume (PV)
What is the kind value in a PVC YAML file?
APersistentVolumeClaim
BPersistentVolume
CStorageClass
DPod
Explain the purpose of a PersistentVolumeClaim in Kubernetes and how it interacts with PersistentVolumes.
Think of PVC as a storage order and PV as the storage supply.
You got /4 concepts.
    Describe the key fields in a PersistentVolumeClaim YAML and their roles.
    Focus on the YAML structure and what each part means.
    You got /4 concepts.