Catalog
google/gke-backup-dr

google

gke-backup-dr

Configures GKE Backup Plans and restore workflows. Use for backup policies, disaster recovery, or GKE cluster restores. Don't use for database backups.

New~509Updated Jun 28, 2026

GKE Backup & Disaster Recovery

Protects stateful GKE workloads using Backup for GKE.

CLI Reference

# Enable GKE Backup addon (Slow cluster-level update)
gcloud container clusters update <CLUSTER_NAME> --enable-gke-backup --region <REGION> --quiet

# Create Backup Plan
gcloud container backup-restore backup-plans create <PLAN_NAME> \
  --cluster=<CLUSTER_NAME> --location=<REGION> \
  --retention-days=<DAYS> --cron-schedule="<CRON>" --all-namespaces --quiet

# Trigger Manual Backup
gcloud container backup-restore backups create <BACKUP_NAME> \
  --backup-plan=<PLAN_NAME> --location=<REGION> --quiet

# Create Restore Plan
gcloud container backup-restore restore-plans create <RESTORE_PLAN_NAME> \
  --cluster=<TARGET_CLUSTER_NAME> --location=<REGION> --backup-plan=<SOURCE_BACKUP_PLAN_NAME> \
  --cluster-resource-conflict-policy=USE_EXISTING_VERSION --namespaced-resource-restore-mode=FAIL_ON_CONFLICT --quiet

# Execute Restore
gcloud container backup-restore restores create <RESTORE_NAME> \
  --restore-plan=<RESTORE_PLAN_NAME> --backup=<BACKUP_NAME> --location=<REGION> --quiet

Best Practices

  1. CMEK Encryption: Encrypt backup plans using Customer-Managed Encryption Keys: --backup-encryption-key=<KEY>.
  2. Scope: Prefer backing up specific namespaces rather than the entire cluster: --included-namespaces=<ns1>,<ns2>.

Troubleshooting & Common Pitfalls (CRITICAL)

[!IMPORTANT] Slow Operations: Enabling GKE Backup (--enable-gke-backup) triggers a slow Google Cloud control plane cluster update that takes several minutes. * Rule: Do not run a terminal loop waiting for the GKE Backup addon to become active. * Action: Provide the command to enable the addon, explain that the operation will proceed in the background, and immediately proceed to write the backup plan configs. Do not block.

Files1
1 files · 11.1 KB

Select a file to preview

Overall Score

72/100

Grade

B

Good

Safety

82

Quality

68

Clarity

78

Completeness

60

Summary

A reference guide for Google Kubernetes Engine (GKE) Backup and Disaster Recovery workflows. The skill provides CLI commands for enabling backup addons, creating backup and restore plans, and executing restore operations on GKE clusters using Google Cloud's Backup for GKE service.

Detected Capabilities

gcloud CLI executionGKE cluster configurationbackup plan creation and managementrestore workflow executionencryption key specification

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

gke backup plandisaster recovery kubernetesgke restore workflowcluster backup policybackup for gke

Risk Signals

INFO

gcloud container commands with cluster modification scope

CLI Reference section
INFO

Asynchronous cluster-level operations (enable-gke-backup) with explicit non-blocking guidance

Troubleshooting & Common Pitfalls section

Referenced Domains

External domains referenced in skill content, detected by static analysis.

www.apache.org

Use Cases

  • Configure automated GKE cluster backups with retention policies
  • Protect stateful workloads in Kubernetes using managed backup service
  • Set up disaster recovery plans for GKE clusters
  • Execute restore operations from existing backups to target clusters
  • Encrypt backup data using customer-managed encryption keys

Quality Notes

  • Clear scope boundaries defined (GKE backups only, excludes database backups)
  • Excellent critical section highlighting operational pitfall (slow cluster update blocking), preventing common mistakes
  • Concise CLI reference with parameter placeholders for easy substitution
  • Best practices section addresses encryption and namespace scoping
  • Skill provides command templates but lacks example outputs or validation steps
  • No error handling guidance for failed backup/restore operations
  • No mention of prerequisites (IAM permissions, billing, GCP project setup)
Model: claude-haiku-4-5-20251001Analyzed: Jun 28, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Version History

  1. v1.1

    Content updated

    ✦ AINo behavioral changes detected in this version update.

    2026-06-28

    Latest
  2. v1.0

    2026-06-24

    View This VersionInitial version

Use google/gke-backup-dr in your dev environment

Command Palette

Search for a command to run...