2V0-71.23 Question 176
Select 5You are managing a production Kubernetes cluster deployed using VMware Tanzu Kubernetes Grid (TKG). To ensure business continuity, you need to back up the cluster and be able to restore it in case of a failure. Which of the following steps are necessary to successfully back up and restore the cluster using Velero?
- A
Install the Velero CLI and configure it to point to your Kubernetes cluster.
- B
Configure a storage backend compatible with Velero, such as S3 or Azure Blob Storage.
- C
Use Velero to create a backup by running 'velero backup create' and specifying a backup name.
- D
Manually save the etcd database snapshot from the control plane nodes.
- E
Ensure Velero plugins are installed for the chosen storage provider.
- F
Restore the cluster by running 'velero restore create' and specifying the backup name.
Show answer and explanation
Correct answers: A, B, C, E, F
Explanation
To back up and restore a Tanzu Kubernetes cluster using Velero, you must install and configure Velero, including its CLI and plugins for the chosen storage backend. Backups are created using the 'velero backup create' command, and restores are performed using the 'velero restore create' command. Configuring a compatible storage backend is essential for storing backup data. Manually saving the etcd database snapshot is not required as Velero handles this process automatically.
- A. Correct.
Correct: Installing the Velero CLI and configuring it to point to the Kubernetes cluster is a required step for interacting with Velero.
- B. Correct.
Correct: Velero requires a compatible storage backend to store the backup data. Configuring a supported storage backend, such as S3 or Azure Blob Storage, is essential.
- C. Correct.
Correct: The 'velero backup create' command is used to create a backup of the cluster. Specifying a unique backup name is part of the process.
- D. Incorrect.
Incorrect: While etcd snapshots are critical for disaster recovery, Velero abstracts this process and does not require manual intervention to save etcd snapshots when creating backups.
- E. Correct.
Correct: Velero plugins must be installed for the chosen storage provider to ensure smooth integration and functionality during backups and restores.
- F. Correct.
Correct: The 'velero restore create' command is used to restore the cluster from a previously created backup, making it a necessary step in the process.