bob-builds-labs

This lab will showcase etcd Backups to Datadomain

Requirements

cd into lab3

cd ~/workspace/0499/lab3
direnv allow .

clone into the ansible_ppdd Repository if not already done:

git clone https://github.com/dell-examples/ansible_ppdd ~/workspace/ansible_ppdd

Enable NFS v4 along with v3 on Datadomain

ansible-playbook  ~/workspace/ansible_ppdd/130.2_Playbook_enable_nfsv3v4.yml

image

Next, create an NFS export and expose to the Master Nodes

ansible-playbook  ~/workspace/ansible_ppdd/130.3_Playbook_create_dd_mtree_with_nfs_add_k8s_nodes.yml -e mtree_name=ocp_etcd

image

This should create the NFS Export and add the Openshift Master nodes using the Ansible Kubernetes k8s module

image

Finally, we create a CronJob in the Openshift Cluster

ansible-playbook ~/workspace/0499/playbooks/create_ocp_etcd_backup.yaml -e mtree_name=ocp_etcd

image

View the CronJob in OpenshiftConsole from Workloads –> CronJobs, Select Project ocp-etcd-backup image

The Job will run every 5 Minutes: image

Back to Index