Skip to content

Configure etcd backups for OpenShift

Go to Automation

View in GitLab

Description

This automation playbook configures etcd data backups for an OCP Cluster. It performs the following tasks:

  • Installs a bash script.
  • Configures a cronjob on a server (usually SRVOCPGW01).
  • Creates a log file per OCP Cluster with log rotation configured.
  • Sets up a cronjob to back up etcd of an OCP Cluster.
  • Stores the exported etcd files (snapshot_YYYY-MM-DD_HHMMSS.db, static_kuberesources_YYYY-MM-DD_HHMMSS.tar.gz) on /mnt/backup/etcd/<openshift_cluster>, which is an NFS mount point.

Credentials

  • sys_ansible_local

Input

Variable Description
target The target hosts for the playbook
openshift_cluster The OCP Cluster for which we want to create backups
starting_hour Define the starting hour for the cronjob

Output

A dated folder on /mnt/backup/etcd/<openshift_cluster> of the target containing all object exports in YAML format.

Dependencies