Notfallwiederherstellung für einen Cluster konfigurieren
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite finden Sie eine Anleitung zum Konfigurieren der Notfallwiederherstellung für Clusterarbeitslasten in Google Distributed Cloud (GDC) Air-Gapped.
Als Plattformadministrator müssen Sie einen Bucket, ein Sicherungs-Repository und einen Sicherungsplan für einen bestimmten Cluster erstellen.
Sobald diese Ressourcen erstellt wurden, müssen Sie einen Infrastructure Operator (IO) informieren, um die Wiederherstellung abzuschließen.
Hinweise
Um die Notfallwiederherstellung für einen Cluster zu konfigurieren, benötigen Sie Folgendes:
Zugriff auf den Kubernetes-Cluster, für den Sie die Wiederherstellung erstellen möchten. Weitere Informationen finden Sie unter Übersicht über Kubernetes-Cluster.
Die erforderlichen Identitäts- und Zugriffsrollen:
DR Backup Admin: Führt Notfallwiederherstellungssicherungen durch. Bitten Sie Ihren IAM-Administrator der Organisation, Ihnen die Clusterrolle „DR Backup Admin“ (dr-backup-admin) zuzuweisen.
DR System Admin: manage objects in dr-system namespace for
setting up management cluster backups. Bitten Sie Ihren IAM-Administrator der Organisation, Ihnen die Rolle „DR System Admin“ (dr-system-admin) zuzuweisen.
Bucket auf der Sicherungswebsite erstellen
Erstellen Sie einen Bucket auf der Sicherungswebsite:
Verwenden Sie die gcloud CLI, um einen Bucket am Sicherungsstandort zu erstellen:
Ändern Sie das Endpunktfeld in der Konfiguration für den Remote-Sicherungsanwendungsfall. Hängen Sie den Port :8082 an die URL an. Aus https://objectstorage.zone1.google.gdch.test wird beispielsweise https://objectstorage.zone1.google.gdch.test:8082.
Sicherungs-Repository auf der Quellwebsite erstellen
Erstellen Sie ein Sicherungs-Repository, indem Sie die Bucket-Konfigurationsdatei auf der Quellwebsite laden:
MANAGEMENT_BACKUP_PLAN_NAME: der von Ihnen gewählte Name für den Sicherungsplan.
Ressource auf der Verwaltungsebene des Infrastrukturclusters.
INFRASTRUCTURE_BACKUP_PLAN_NAME: der von Ihnen gewählte Name für die Sicherungsplanressource auf der Steuerungsebene des Infrastrukturclusters.
NAMESPACE_MP: Der ausgewählte Namespace, der auf dem Management API-Server gesichert werden soll.
NAMESPACE_CP: Der ausgewählte Namespace, der auf dem Infrastruktur-API-Server gesichert werden soll.
Für diese Sicherungspläne gelten die folgenden Regeln:
Sichert den ausgewählten Namespace alle 24 Stunden. Diese Häufigkeit kann durch Ändern des Felds cronSchedule angepasst werden.
Die Sicherung enthält Volumedaten und verwendet eine an den Provisioner angepasste Strategie.
Eine Aufbewahrungsrichtlinie ist so festgelegt, dass Sicherungen 40 Tage lang aufbewahrt werden. Sie können backupRetainDays und backupDeleteLockDays an Ihre Richtlinien zur Datenaufbewahrung anpassen.
Wiederherstellung durchführen
Sie müssen den Fall eskalieren und einen Infrastructure Operator (IO) anweisen, die Wiederherstellung in Ihrem Namen durchzuführen. Geben Sie die erforderlichen Informationen an, z. B. den Namen der BackupRepository- und BackupPlan-Ressource. Weitere Informationen zu Zielgruppengruppen in GDC finden Sie unter Dokumentationszielgruppen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-05 (UTC)."],[[["\u003cp\u003eThis page guides Platform Administrators (PAs) through configuring disaster recovery for cluster workloads in Google Distributed Cloud (GDC) air-gapped environments.\u003c/p\u003e\n"],["\u003cp\u003ePAs must create a bucket, a backup repository linked to this bucket, and a backup plan to schedule regular backups for a specified cluster.\u003c/p\u003e\n"],["\u003cp\u003eConfiguring disaster recovery requires specific Kubernetes cluster access and the \u003ccode\u003edr-backup-admin-mp\u003c/code\u003e and \u003ccode\u003edr-system-admin-mp\u003c/code\u003e identity and access roles.\u003c/p\u003e\n"],["\u003cp\u003eOnce the bucket, repository, and plan are created, PAs need to inform an Infrastructure Operator (IO) to complete the restoration process.\u003c/p\u003e\n"],["\u003cp\u003eThe created backup plan will backup the specified namespace every ten minutes, include volume data using a local snapshot strategy, and has a retention policy set to retain backups for ten days.\u003c/p\u003e\n"]]],[],null,["# Configure disaster recovery for a cluster\n\nThis page provides instructions for how to configure disaster recovery for\ncluster workloads in Google Distributed Cloud (GDC) air-gapped.\n\nAs a Platform Administrator (PA), you must create a bucket, backup repository,\nand a backup plan for a specified cluster.\n\nOnce these resources are created, you must inform an Infrastructure Operator\n(IO) to complete the restore.\n\nBefore you begin\n----------------\n\nTo configure disaster recovery for a cluster, you must have the following:\n\n- Access to the Kubernetes cluster you want to create the restore for. For more information, see [Kubernetes cluster overview](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/clusters).\n- The necessary identity and access roles:\n - DR Backup Admin: performs disaster recovery backups. Ask your Organization IAM Admin to grant you the DR Backup Admin (`dr-backup-admin`) cluster role.\n - DR System Admin: manage objects in dr-system namespace for setting up management cluster backups. Ask your Organization IAM Admin to grant you the DR System Admin (`dr-system-admin`) role.\n\n### Create bucket on the backup site\n\nCreate a bucket on the backup site:\n\n1. Use the gdcloud CLI to create a bucket in the backup site:\n\n gdcloud dr buckets create --cluster=\u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e \\\n --source-site=\u003cvar translate=\"no\"\u003eSOURCE_SITE\u003c/var\u003e\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eSOURCE_SITE\u003c/var\u003e: the identifier of the source site as chosen by the customer. For example, `us-west`.\n - \u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e: the cluster name for the cluster such as `root-admin`.\n - \u003cvar translate=\"no\"\u003eBUCKET_CONFIG_FILE\u003c/var\u003e: the path of saved bucket configuration file.\n2. Store the bucket configuration locally in JSON format:\n\n gdcloud dr buckets describe --cluster=\u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e \\\n --source-site=\u003cvar translate=\"no\"\u003eSOURCE_SITE\u003c/var\u003e \\\n --output-path=\u003cvar translate=\"no\"\u003eBUCKET_CONFIG_FILE\u003c/var\u003e\n\n3. Modify the endpoint field in the configuration for the remote backup use case. Append port `:8082` to the URL: For example, `https://objectstorage.zone1.google.gdch.test` becomes\n `https://objectstorage.zone1.google.gdch.test:8082`.\n\n### Create backup repository on the source site\n\nCreate a backup repository by loading the bucket config file in the source site: \n\n gdcloud dr backup-repositories create\n --cluster=\u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e\n --bucket-config-file=\u003cvar translate=\"no\"\u003eBUCKET_CONFIG_FILE\u003c/var\u003e\n\n### Create backup plans for infrastructure and Management API servers\n\nCreate a `BackupPlan` resource on both the infrastructure and Management control planes using `kubectl`: \n\n apiVersion: backup.gdc.goog/v1\n kind: BackupPlan\n metadata:\n name: \u003cvar translate=\"no\"\u003eMANAGEMENT_BACKUP_PLAN_NAME\u003c/var\u003e\n namespace: dr-system\n spec:\n clusterName: infra-mp\n backupSchedule:\n cronSchedule: \"0 0 * * *\"\n paused: false\n backupConfig:\n backupScope:\n selectedNamespaces:\n namespaces:\n - \u003cvar translate=\"no\"\u003eNAMESPACE_MP\u003c/var\u003e\n backupRepository: dr-backup-repo\n includeVolumeData: true\n volumeStrategy: ProvisionerSpecific\n retentionPolicy:\n backupDeleteLockDays: 40\n backupRetainDays: 40\n ---\n apiVersion: backup.gdc.goog/v1\n kind: BackupPlan\n metadata:\n name: \u003cvar translate=\"no\"\u003eINFRASTRUCTURE_BACKUP_PLAN_NAME\u003c/var\u003e\n namespace: dr-system\n spec:\n clusterName: infra-cp\n backupSchedule:\n cronSchedule: \"0 0 * * *\"\n paused: false\n backupConfig:\n backupScope:\n selectedNamespaces:\n namespaces:\n - \u003cvar translate=\"no\"\u003eNAMESPACE_CP\u003c/var\u003e\n backupRepository: dr-backup-repo\n includeVolumeData: true\n volumeStrategy: ProvisionerSpecific\n retentionPolicy:\n backupDeleteLockDays: 40\n backupRetainDays: 40\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eMANAGEMENT_BACKUP_PLAN_NAME\u003c/var\u003e: your chosen name for the backup plan. resource on the infrastructure cluster management plane.\n- \u003cvar translate=\"no\"\u003eINFRASTRUCTURE_BACKUP_PLAN_NAME\u003c/var\u003e: your chosen name for the backup plan resource on the infrastructure cluster control plane.\n- \u003cvar translate=\"no\"\u003eNAMESPACE_MP\u003c/var\u003e: the chosen namespace to backup in the Management API server.\n- \u003cvar translate=\"no\"\u003eNAMESPACE_CP\u003c/var\u003e: the chosen namespace to backup in the infrastructure API server.\n\nThese backup plans follow these rules:\n\n- Backs up the selected namespace every 24 hours. This frequency can be adjusted by modifying the `cronSchedule` field.\n- The backup includes volume data and uses a provisioner specific strategy.\n- A retention policy is set to keep backups for 40 days. You can adjust `backupRetainDays` and `backupDeleteLockDays` to meet your data retention policies.\n\nPerform the restoration\n-----------------------\n\nYou must escalate and instruct an Infrastructure Operator (IO) to perform the\nrestore on your behalf. Provide the necessary information such as the name of\nthe `BackupRepository` and `BackupPlan` resource. For more information on\naudience groups in GDC, see\n[Documentation audiences](/distributed-cloud/hosted/docs/latest/gdch/resources/audiences)."]]