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 happensClick 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?
✗ Incorrect
A StorageClass defines how storage volumes are dynamically provisioned in Kubernetes.
Which field in a StorageClass specifies the plugin to create storage?
✗ Incorrect
The provisioner field specifies the plugin that creates the storage volume.
What happens if reclaimPolicy is set to Delete?
✗ Incorrect
Delete means the storage volume is deleted when the PersistentVolumeClaim is deleted.
Dynamic provisioning eliminates the need for:
✗ Incorrect
Dynamic provisioning automatically creates PersistentVolumes, so admins don't create them manually.
Which of these is NOT a typical parameter in a StorageClass?
✗ Incorrect
Pod CPU limits are unrelated to StorageClass parameters.
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.