Persistent Concepts in Kubernetes Flashcards
What is the main challenge persistent storage solves in Kubernetes?
Persistent storage solves the challenge of preserving data even when containers are destroyed, allowing data to persist beyond the lifecycle of containers.
What are the two ways to use storage in Kubernetes?
The two ways to use storage in Kubernetes are the “static way” and the “dynamic way.”
What is a key benefit of using storage classes in Kubernetes?
Storage classes eliminate the need to pre-provision persistent volumes and support multiple persistent volume claims, making them more flexible.
How can you externalize configuration values in Kubernetes using Config Maps?
You can externalize configuration values in Kubernetes by using Config Maps to store key-value pairs, which are then injected as environment variables into containers.
What is one advantage of using volumes with Config Maps in Kubernetes?
Using volumes with Config Maps allows for dynamic updates of configuration values in containers without requiring container restarts.
What is a Persistent Volume (PV) in Kubernetes?
A Persistent Volume (PV) is a storage resource that is available cluster-wide and is provisioned by the cluster administrator.
What is a Persistent Volume Claim (PVC) used for in Kubernetes?
A Persistent Volume Claim (PVC) is used by a pod to claim a Persistent Volume (PV) and request a specific amount of storage.
How can you specify the capacity, access mode, and reclaim policy for a Persistent Volume (PV) in Kubernetes?
You can specify the capacity, access mode, and reclaim policy for a Persistent Volume (PV) in its YAML manifest under the spec section.
What is the key difference between static provisioning and dynamic provisioning of storage in Kubernetes?
Static provisioning requires the cluster administrator to pre-provision Persistent Volumes (PVs) with fixed capacity, while dynamic provisioning allows PVs to be provisioned automatically based on Persistent Volume Claims (PVCs).
What is the purpose of the reclaimPolicy property in a Persistent Volume (PV) definition in Kubernetes?
The reclaimPolicy property determines what happens to the storage associated with a PV when the PV is released. It can be set to “Retain” to preserve data or “Delete” to delete data.
What is the primary purpose of Storage Classes in Kubernetes?
Storage Classes in Kubernetes are used to define and manage dynamic provisioning of Persistent Volumes (PVs) based on user-defined policies.
How do Storage Classes simplify the process of provisioning storage in Kubernetes?
Storage Classes abstract the details of storage provisioning, allowing users to request storage without needing to know the specific details of the underlying infrastructure.
What is the key benefit of using Storage Classes for storage provisioning in Kubernetes?
The key benefit is that Storage Classes allow for on-demand provisioning of storage resources, eliminating the need for manual pre-provisioning by administrators.
What are the essential components of a Storage Class definition in Kubernetes?
A Storage Class definition typically includes the provisioner (the volume plugin to use), parameters (configuration for the provisioner), and a reclaim policy (determining what happens to the storage when released).
How can users request storage with a specific Storage Class in Kubernetes?
Users can request storage with a specific Storage Class by specifying the Storage Class name in their Persistent Volume Claim (PVC) manifest.