Skip to main content
Version: 1.4

Kubernetes namespaces restore v1 (Task)

Restore kubernetes namespaces from a backup.

Prerequisites

  • Kubernetes asset
  • Kubernetes credentials
  • Storage bucket asset
  • Storage bucket credentials

Procedure from web console

  • Navigate to the tasks page: Operations > Tasks (or go directly to /home/operations/tasks)
  • Click on Create Task button
  • Select Kubernetes namespaces Restore
  • Fill out the Kubernetes namespaces Restore task form with the following information:
    • Task name: Enter a descriptive name for your task
    • The Kubernetes asset where backup will be restored: Select the target Kubernetes asset from the dropdown
    • Kubernetes credential: Select the credential to access the Kubernetes cluster
    • The Bucket asset where backups are stored: Choose the storage bucket containing the backup from the dropdown
    • Bucket credential: Select the credential to access the storage bucket
    • The path inside the bucket where backup is saved: Define the base path within the bucket where backups are stored
    • Dry run: Simulate the operation without applying changes
    • Prune objects: Remove objects in the destination that don’t match the configured selectors
    • Synchronize objects: Sync objects even if they already exist in the destination
    • Log messages: Configure logging for:
      • When objects are already in sync
      • When objects are adapted for the destination
    • Log level: Set verbosity level "debug", "warm", "error", "info"
    • Kubernetes resources: Configure computational resources to be used:
      • Limit CPU, Limit memory, Request CPU, Request memory
  • Click Next to continue with the task configuration
  • Select the target cluster where you want to execute the task (optional — if not specified, the task will run on the default cluster)
  • Review the task configuration summary
  • Click Create Task to execute the Kubernetes namespaces Restore task

Procedure from CLI

Create a YAML file with the Kubernetes namespaces Restore task configuration:



Apply the task to the cluster:

```bash
kubectl apply -f <>-task.yaml

Note:

  • Replace the placeholder values (<task-name>, <<>-id>, etc.) with your actual configuration values
  • This task will perform a one-time Kubernetes namespaces Restore operation from the specified backup path
  • The restore-path should point to the specific location of your backup files within the bucket (optional)