2V0-71.23 Question 179
Select 2You are managing a Tanzu Kubernetes cluster in production and need to ensure business continuity in case of a disaster. You are tasked with implementing a backup and restore strategy for the cluster. Which steps should you take to successfully back up and restore the cluster, including its state and workloads?
- A
Use Velero or a similar backup tool to back up both Kubernetes resources and persistent volumes.
- B
Manually copy the etcd database from the control plane nodes to a secure location.
- C
Use the
kubectl backupcommand to save the entire cluster state. - D
Ensure that a storage provider supporting snapshots is configured for persistent volume backups.
- E
Restore the cluster by redeploying workloads manually without using backup tools.
Show answer and explanation
Correct answers: A, D
Explanation
Backing up a Tanzu Kubernetes cluster involves preserving both the state of the cluster (e.g., deployments, services, configurations) and persistent data (e.g., data stored in volumes). Tools like Velero are designed to handle these requirements effectively. Additionally, having a storage provider capable of snapshots ensures that persistent volumes can be backed up and restored properly. Manual approaches are not reliable or efficient in production environments.
- A. Correct.
Velero or similar tools are specifically designed for Kubernetes cluster data backups. They can back up Kubernetes resources (e.g., deployments, services) and persistent volumes, making them a reliable choice for cluster backup and restore.
- B. Incorrect.
Manually copying the etcd database is error-prone and not recommended as it does not capture the complete cluster state or workloads. Tools like Velero are better suited for this purpose.
- C. Incorrect.
The
kubectl backupcommand does not exist in Kubernetes. Cluster backups require third-party tools or manual approaches like etcd snapshots for control plane state. - D. Correct.
Using a storage provider that supports snapshots is essential for backing up persistent volumes. Without this capability, persistent data associated with workloads might not be recoverable.
- E. Incorrect.
Manually redeploying workloads without backup tools is inefficient and does not ensure the restoration of the complete cluster state. Backup tools automate this process and ensure accuracy.