Storage Flashcards
What is a persistent volume?
A cluster-wide pool of storage volumes configured by an administrator to be used by users deploying applications on the cluster.
What is the the kind variable for a persistent volume?
PersistentVolume
What are the different accessModes for a persistent volume?
- ReadOnlyMany
- ReadWriteOnce
- ReadWriteMany
How do you specify a specific volume if there are multiple matches for a single claim?
Use labels and selectors to bind to the right volume
Can smaller claims be bound to a larger volume if all other criteria matches and there are no better options?
Yes
What happens if there are no volumes available for a claim?
The volume claim will remain in a pending state
What is the command to delete a persistent volume claim?
k delete persistentvolumeclaim
What happens to the underlying volume when a claim is deleted?
By default, it is set to retain. Meaning the persistent volume will remain until it is manually deleted by the administrator. It is not available for reuse by any other claims. Or, it can be deleted automatically. This way, as soon as the claim is deleted, the volume will be deleted as well. A third option is to recycle. In this case, the data in the data volume will be scrubbed before making it available to other claims.
What is the command to get storage classes?
k get sc