Follow @YongkangHe on Twitter, Subscribe K8s Data Management Youtube Channel
I just want to build a Red Hat OpenShift Container Platform to play with the various Data Management capabilities e.g. Backup/Restore, Disaster Recovery and Application Mobility.
It is challenging to create an OpenShift cluster from IBM Cloud if you are not familiar to it. After the OCP Cluster is up running, we still need to install Kasten, create a sample DB, create policies etc.. The whole process is not that simple.
This script based automation allows you to build a ready-to-use Kasten K10 demo environment running on OpenShift Container Platform on IBM Cloud in about 40 minutes. In order to demonstrate OpenShift Container Storage features, the OCP cluster will have 4 worker nodes and be built in a new vpc using a new subnet, gateway. This is bash shell based scripts which has been tested on IBM Cloud Shell in the Sydney region.
- Log in to https://cloud.ibm.com, then open IBM Cloud Shell
- Clone the github repo to your local host, run below command
git clone https://github.com/yongkanghe/ocp-ibm-k10.git
- Complete the preparation tasks first
cd ocp-ibm-k10;./ibmprep.sh
- Optionally, you can customize the clustername, worker flavor, zone, region, bucketname etc.
vim setenv.sh
./deploy.sh
- Create an OCP Cluster from CLI
- Install Kasten K10
- Deploy a MongoDB database
- Create an IBM COS location profile
- Create a backup policy
- Run an on-demand backup job
The cloned respository including the temporary files will be removed after no activity for one hour. If that happened, you need to run below steps to re-created the files before you can destroy the labs.
git clone https://github.com/yongkanghe/ocp-ibm-k10.git;cd ocp-ibm-k10;./ibmprep.sh
./destroy.sh
- Remove OpenShift Cluster Cluster
- Remove the VPC, Subnet, Gateway
- Remove all the relevant disks
- Remove all the relevant snapshots
- Remove the objects from the bucket
Subscribe K8s Data Management Youtube Channel
Subscribe K8s Data Management Youtube Channel
Subscribe K8s Data Management Youtube Channel
https://blog.kasten.io/kubernetes-backup-with-openshift-container-storage
https://blog.kasten.io/kasten-and-red-hat-migration-and-backup-for-openshift