Difficulty: Beginner
Estimated Time: 10 minutes

Velero gives you tools to back up and restore your Kubernetes cluster resources and persistent volumes. Velero lets you:

  • Take backups of your cluster and restore in case of loss.
  • Copy cluster resources across cloud providers. NOTE: Cloud volume migrations are not yet supported.
  • Replicate your production environment for development and testing environments.

Velero consists of:

  • A server that runs on your cluster
  • A command-line client that runs locally

For more information, the documentation provides a getting started guide, plus information about building from source, architecture, extending Velero, and more.

Heptio Velero

Step 1 of 3

Set Up our Environment

Let's pull down the Heptio Velero GitHub repo to help us get started: git clone https://github.com/heptio/velero

Apply some basic prerequisites (e.g. CustomResourceDefinitions, namespaces, and RBAC): kubectl apply -f velero/examples/common/00-prereqs.yaml

Apply a local storage service (e.g. Minio): kubectl apply -f velero/examples/minio/

Deploy an example nginx application: kubectl apply -f velero/examples/nginx-app/base.yaml

Check to see that both Velero and nginx deployments have been successfully created:

kubectl get deployments -l component=velero --namespace=velero

kubectl get deployments --namespace=nginx-example