Storage Flashcards

1
Q

What is a persistent volume?

A

A cluster-wide pool of storage volumes configured by an administrator to be used by users deploying applications on the cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the the kind variable for a persistent volume?

A

PersistentVolume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the different accessModes for a persistent volume?

A
  • ReadOnlyMany
  • ReadWriteOnce
  • ReadWriteMany
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you specify a specific volume if there are multiple matches for a single claim?

A

Use labels and selectors to bind to the right volume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Can smaller claims be bound to a larger volume if all other criteria matches and there are no better options?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What happens if there are no volumes available for a claim?

A

The volume claim will remain in a pending state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the command to delete a persistent volume claim?

A

k delete persistentvolumeclaim

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens to the underlying volume when a claim is deleted?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the command to get storage classes?

A

k get sc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly