This page describes how to view and delete an existing restore in Google Distributed Cloud (GDC) air-gapped.
Delete unused restores to free up storage space and reduce clutter.
Before you begin
To view and delete a restore, you must have the following:
- An existing restore. For more information, see Plan a set of restores.
The necessary identity and access role:
- For PA users:
- User Cluster Backup Admin: manages backup resources such as backup and
restore plans in user clusters. Ask your Organization IAM Admin to grant you
the User Cluster Backup Admin (
user-cluster-backup-admin
) role.
- User Cluster Backup Admin: manages backup resources such as backup and
restore plans in user clusters. Ask your Organization IAM Admin to grant you
the User Cluster Backup Admin (
- For AO users:
- Backup Creator: creates manual backups and restores. Ask your Project IAM Admin to grant you the Backup Creator (
backup-creator
) role.
- Backup Creator: creates manual backups and restores. Ask your Project IAM Admin to grant you the Backup Creator (
- For more information, see Role definitions.
- For PA users:
View a restore
View a list of restores using the GDC console or kubectl
.
Console
- Sign in to the GDC console.
- In the navigation menu, click Backup for Clusters.
- Click Select project to select an organization or project depending on your role:
- Backup Admin: Select an organization to see all of the restores in an organization or select a project to see all of the restores in a project.
- Backup Creator: Select a project to see all of the restores in a project.
- Click the Restores tab.
- Click a restore in the list to view its details.
kubectl
View the status of a restore in the default namespace:
kubectl get clusterRestores
Here's an example of the output:
NAME STATE
restore-sample Succeeded
View restores in all namespaces:
kubectl get clusterRestores -A
View restores in a specific namespace:
kubectl get clusterRestores -n NAMESPACE
Replace NAMESPACE
with the namespace containing the restores.
Delete a restore
Unlike backups, deleting a restore does not require issuing a request. Restores are deleted by deleting the resource directly from the Kubernetes API server. This action also cleans up any associated restore artifacts from object storage.
To delete a restore, use
kubectl
:kubectl delete clusterRestores RESTORE_NAME
Replace
RESTORE_NAME
with the name of the restore.