Coder Social home page Coder Social logo

yongkanghe / ocp-ibm-k10 Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 3.0 15.45 MB

Build a ready-to-use Kasten demo environment on Red Hat OpenShift with OCS on IBM Cloud in ~45 minutes with just one command (OCP+OCS+MongoDB+K10).

License: MIT License

Shell 100.00%
kubernetes k8s redhat openshift ocp ocs ibm ibmcloud backup-restore disaster-recovery

ocp-ibm-k10's Introduction

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.

image

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.

Here're the prerequisities.

  1. Log in to https://cloud.ibm.com, then open IBM Cloud Shell
  2. Clone the github repo to your local host, run below command
git clone https://github.com/yongkanghe/ocp-ibm-k10.git
  1. Complete the preparation tasks first
cd ocp-ibm-k10;./ibmprep.sh
  1. Optionally, you can customize the clustername, worker flavor, zone, region, bucketname etc.
vim setenv.sh

To build the labs, run

./deploy.sh
  1. Create an OCP Cluster from CLI
  2. Install Kasten K10
  3. Deploy a MongoDB database
  4. Create an IBM COS location profile
  5. Create a backup policy
  6. Run an on-demand backup job

NOTE: IBM Cloud Shell is emphemeral.

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.

To create the repository and the temporary files

git clone https://github.com/yongkanghe/ocp-ibm-k10.git;cd ocp-ibm-k10;./ibmprep.sh

To delete the labs, run

./destroy.sh
  1. Remove OpenShift Cluster Cluster
  2. Remove the VPC, Subnet, Gateway
  3. Remove all the relevant disks
  4. Remove all the relevant snapshots
  5. Remove the objects from the bucket

Learn how to automate OCP, OCS, MongoDB and K10.

IMAGE ALT TEXT HERE

Subscribe K8s Data Management Youtube Channel

Learn how to build an OCP cluster via Web Console

IMAGE ALT TEXT HERE

Subscribe K8s Data Management Youtube Channel

Learn how to backup/restore containers on OCP Cluster

IMAGE ALT TEXT HERE

Subscribe K8s Data Management Youtube Channel

For more details about OCP Backup and Restore

https://blog.kasten.io/kubernetes-backup-with-openshift-container-storage

https://blog.kasten.io/kasten-and-red-hat-migration-and-backup-for-openshift

Kasten - No. 1 Self Managed Kubernetes Backup

https://kasten.io

CloudCasa - Best Kubernetes Backup as a Service

https://cloudcasa.io

Contributors

Follow Yongkang He on LinkedIn, Join Kubernetes Data Management LinkedIn Group

ocp-ibm-k10's People

Contributors

yongkanghe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.