Kubernetes advanced namespaces restore v1 (Task)
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 advanced namespaces Restore
- Fill out the Kubernetes advanced 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
- Global selector to backup: Define a namespace-level selector
- Object selector to backup: Define object-level selectors
- 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
- 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 advanced namespaces Restore task
Procedure from CLI
Create a YAML file with the Kubernetes advanced 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 advanced 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)