Using Velero to back up workloads and PVCs
Velero supports running a one-time backup with a single command or on a recurring schedule. Whether you choose to run a single backup or a recurring backup, you can back up all objects or only certain objects using include
and exclude
flags.
Backing up PVCs
Since data is becoming increasingly common on Kubernetes clusters, we will back up all of the cluster workloads, including any PVCs that are in the cluster. When we installed Velero, we added the --use-node-agent
option, which created a DaemonSet that creates a node agent on each cluster node. The DaemonSet deploys a pod containing modules that can perform file system backups, including a data mover, which may be Restic or Kopia (default) on each node, and a new secret is created in the velero
namespace called velero-repo-credentials
. This secret contains a repository-password
that will be used for your backups. This is a generated password, and you can change it to anything you...