Skip to content

This project is meant to provide a simple ETCD backup solution embedded in OCP4.

Notifications You must be signed in to change notification settings

lpanza/ocp4-etcd-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

ocp4-etcd-backup

This project is meant to provide a simple ETCD backup solution embedded in OCP4.

To apply the manifests, just run kustomize or oc apply -k from the root of the repository:
kustomize build . | oc apply -f -
oc apply -k .

If you want to add an NFS mount just add the mount before executing the backup script in the ocp4-backup/etcd-bck-cronJob.yml file:
chroot /host sudo -E mount -t nfs <nfs-server-IP>:<shared-path> /home/core/backup
and unmout it at the end:
chroot /host sudo -E umount /home/core/backup

If you want to test the backup job, run the following command:
oc create job backup --from=cronjob/openshift-backup -n ocp-etcd-backup

Notes

The following articles have been used to create this Repository.
https://access.redhat.com/solutions/5843611
https://cloud.redhat.com/blog/ocp-disaster-recovery-part-1-how-to-create-automated-etcd-backup-in-openshift-4.x

About

This project is meant to provide a simple ETCD backup solution embedded in OCP4.

Resources

Stars

Watchers

Forks

Packages

No packages published