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
ansible-playbook ~/workspace/ansible_ppdd/130.2_Playbook_enable_nfsv3v4.yml
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
This should create the NFS Export and add the Openshift Master nodes using the Ansible Kubernetes k8s module
Finally, we create a CronJob in the Openshift Cluster
ansible-playbook ~/workspace/0499/playbooks/create_ocp_etcd_backup.yaml -e mtree_name=ocp_etcd
View the CronJob in OpenshiftConsole from Workloads –> CronJobs, Select Project ocp-etcd-backup
The Job will run every 5 Minutes: