0
0
Kubernetesdevops~5 mins

Storage classes for dynamic provisioning in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a StorageClass in Kubernetes?
A StorageClass defines how a unit of storage is dynamically provisioned in Kubernetes. It specifies the type of storage (like SSD or HDD), the provisioner, and parameters for creating persistent volumes automatically.
Click to reveal answer
beginner
How does dynamic provisioning work with StorageClasses?
When a PersistentVolumeClaim requests storage with a StorageClass, Kubernetes uses the StorageClass's provisioner to create a PersistentVolume automatically without manual admin intervention.
Click to reveal answer
intermediate
What key fields are defined in a StorageClass YAML?
Key fields include: <br> - provisioner: the plugin that creates storage<br> - parameters: settings for the storage<br> - reclaimPolicy: what happens to storage after release<br> - volumeBindingMode: when volume binding happens
Click to reveal answer
intermediate
What is the purpose of the reclaimPolicy in a StorageClass?
The reclaimPolicy tells Kubernetes what to do with the storage after the PersistentVolumeClaim is deleted. Common values are Delete (storage is deleted) or Retain (storage is kept for manual cleanup).
Click to reveal answer
beginner
Give an example of a common provisioner used in StorageClasses.
A common provisioner is kubernetes.io/aws-ebs for AWS Elastic Block Store, or kubernetes.io/gce-pd for Google Cloud Persistent Disk. These provisioners create cloud storage volumes dynamically.
Click to reveal answer
What does a StorageClass in Kubernetes define?
ANetwork policies for pods
BUser permissions for storage access
CHow storage volumes are dynamically created
DContainer image versions
Which field in a StorageClass specifies the plugin to create storage?
Aparameters
BreclaimPolicy
CvolumeBindingMode
Dprovisioner
What happens if reclaimPolicy is set to Delete?
AStorage volume is kept after claim deletion
BStorage volume is deleted after claim deletion
CStorage volume is backed up automatically
DStorage volume is resized automatically
Dynamic provisioning eliminates the need for:
AManual creation of PersistentVolumes
BUsing PersistentVolumeClaims
CDefining StorageClasses
DPod scheduling
Which of these is NOT a typical parameter in a StorageClass?
Apod CPU limits
Btype of disk (SSD/HDD)
Cprovisioner plugin name
Dreclaim policy
Explain how StorageClasses enable dynamic provisioning in Kubernetes.
Think about how storage is created automatically when requested.
You got /4 concepts.
    Describe the role of reclaimPolicy in a StorageClass and its common values.
    Consider what happens to storage after you stop using it.
    You got /3 concepts.