Skip to content

YAML Example Files

Standalone YAML files you can apply with kubectl apply -f. All resources use the retour namespace. Adapt names, namespaces, and storage backends to your environment.

Backup

File Description
backup-basic.yaml Single Deployment
backup-statefulset.yaml StatefulSet
backup-namespace.yaml Full namespace
backup-manifests-only.yaml No PV data
backup-filtered.yaml With resource filter
backup-pv-filters.yaml PV path filters
backup-multi-resource.yaml Multiple resources
backup-skip-pvc.yaml Skip specific PVC
backupschedule-daily.yaml Daily cron
backupschedule-hourly.yaml Hourly with Forbid

Restore

File Description
restore-full.yaml Full restore
restore-selective.yaml Selective resources
restore-single-deployment.yaml Single Deployment
restore-external-path.yaml From path (DR)
restore-template.yaml Restore template
restore-from-template.yaml Execute template

Storage Backend

File Description
storage-backend-s3.yaml AWS S3
storage-backend-minio.yaml MinIO
storage-backend-azureblob.yaml Azure Blob Storage
storage-backend-gcs.yaml Google Cloud Storage
storage-backend-s3-irsa.yaml S3 with IRSA (EKS)

Quick Start

# 1. Create storage backend (edit credentials first)
kubectl apply -f docs/examples/yaml/storage-backend-minio.yaml

# 2. Create a backup
kubectl apply -f docs/examples/yaml/backup-basic.yaml

# 3. Check status
kubectl get backups -n retour