Backup and restore components are pre-installed and managed by Google Distributed Cloud (GDC) air-gapped. This document shows you how to verify prerequisites and confirm that backup and restore APIs are available before backing up your cluster workloads.
Before you begin
Ensure you have the following items pre-configured:
- An S3 endpoint and bucket on GDC object storage with an S3 access key ID and secret access key.
- A working cluster. ### Request IAM roles
To verify and work with backup and restore components, ask your IAM Org Admin or IAM Project Admin to grant you one of the following roles:
User Cluster Backup Admin (
user-cluster-backup-admin): creates, gets, lists, watches, updates, patches, and deletes backup resources such as backup plans, restore plans, and backup repositories in user clusters. Contact your IAM Org Admin to request this role.Backup Creator (
backup-creator): creates, gets, lists, watches, updates, patches, and deletes manual backup requests and manual restore requests. Contact your IAM Project Admin to request this role.
Verify backup and restore installation
The gpcbackup control plane and agent Pods are pre-installed and managed by
the platform (your Infrastructure Operator). You don't need to install backup
components in your Kubernetes clusters.
Verify that cluster backup and restore APIs are available by using the
GDC console or kubectl:
- Console: Sign in to the GDC console and click Backup for Clusters in the navigation menu to confirm that the service page loads.
CLI: Verify that the
backup.gdc.googcustom resource definitions (CRDs) are registered on the management API server:kubectl --kubeconfig MANAGEMENT_API_SERVER api-resources --api-group=backup.gdc.googReplace
MANAGEMENT_API_SERVERwith the path to the kubeconfig file for the management API server.The output lists the registered backup and restore resource types, similar to the following example:
NAME SHORTNAMES APIVERSION NAMESPACED KIND backupplans backup.gdc.goog/v1 true BackupPlan backuprepositories backup.gdc.goog/v1 false BackupRepository ... clusterbackupplans backup.gdc.goog/v1 true ClusterBackupPlan clusterbackuprepositories backup.gdc.goog/v1 false ClusterBackupRepository clusterbackups backup.gdc.goog/v1 true ClusterBackup clusterrestoreplans backup.gdc.goog/v1 true ClusterRestorePlan clusterrestores backup.gdc.goog/v1 true ClusterRestore ... manualbackuprequests backup.gdc.goog/v1 true ManualBackupRequest manualclusterbackuprequests backup.gdc.goog/v1 true ManualClusterBackupRequest manualclusterrestorerequests backup.gdc.goog/v1 true ManualClusterRestoreRequest manualrestorerequests backup.gdc.goog/v1 true ManualRestoreRequest ...