Configure project backups for OpenShift
Description
This automation playbook configures project 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 all (both Namespace and Cluster wide) objects in an OCP Cluster.
- Stores the corresponding YAML files on
/mnt/backup/projects/<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/projects/<openshift_cluster> of the target containing all object exports in YAML format.