Bug: Install Cassandra on IBM Cloud
Status: Open
Priority: Normal
Created: 26/Dec/20 22:23

This documentation will describe how to Install Cassandra  on [IBM Cloud|https://cloud.ibm.com/]. 

*Requirements/Prerequisites:* 
 * IBM Cloud Pay-As-You-Go or Subscription [Account types|https://cloud.ibm.com/docs/account?topic=account-accounts]. 

 

*Installation Steps:* 

We are assuming that you have logged-in to [IBM Cloud|https://cloud.ibm.com/]. Now follow the steps below:

 

*Step 1: Provision a Kubernetes Cluster*
 * Click on the [Catalog|https://cloud.ibm.com/catalog#services]{color:#172b4d} {color}link on the top menu.
 * Select  *{color:#172b4d}Services{color}* from left navigation menu of the [Catalog|https://cloud.ibm.com/catalog#services] page.

Now Search for Kubernetes Service and [click on it.|https://cloud.ibm.com/kubernetes/catalog/create]!Step 1 3 - Kubernates Services.png|width=635,height=504!

{color:#172b4d} Option 1: Create{color} free Kubernates Engine:
 * Price Plan: Free

{color:#172b4d}!Step 1 4 create cluster plan only.png!{color}
 * {color:#172b4d}Now click *create*{color} on the right to provision the free kubernetes cluster.

!create cluster --.png!
 * Please wait for few moments to complete the cluster creation. 

 Option 2: Create Standard Kubernetes Engine with following attributes: 
 * Price Plan: Standard
 * Infrastructure: Classic

!image-2020-12-29-16-32-55-506.png!
 * Availability: Single Zone
 * Geography: Europe 
 * Worker Zone: London 02

!Step 1 6 Kubernate details.png!
 * 4 VCPU
 * 16 GB RAM
 * Worker nodes per zone: 2

!Step 1 7 Kubernate details.png!
 * Enter the cluster name of your choice.
 * Now Click {color:#172b4d}*Create* {color}to provision.

!create cluster --.png!
 * Please wait for few moment to provision the cluster. 

 

*Step 2: deploy IBM Cloud Block Storage plug-in*
 * Just like the step 1, click on the [Catalog|https://cloud.ibm.com/catalog] on the top menu again.
 * Search for  "Storage Block" and [Click on it.|https://cloud.ibm.com/infrastructure/block-storage]
 * Click on {color:#172b4d}*Create* {color}
 * Now give storage details 
 * N.B. Select location as the cluster location. 

 * Location > Europe > Single Zone > London 02
 * Billing Method > 20 GB >Linux

!Step 2 1.png!
 * Click on “_I have agreed to the terms and conditions listed below_”.
 * Now a storage plugin will be available in the dashboard. 

 

*Step 3: Deploy Cassandra* 
 * Again go to the catalog and search for “Cassandra”  and [Click on it.|https://cloud.ibm.com/catalog#software]
 * Now {color:#172b4d}select {color}"Cassandra".
 * In the Cassandra creation page add the details below: 
 ** Summary
 ** Cassandra
 ** Target: IBM Kubernetes Service
 ** Method: Helm chart
 ** Kubernetes cluster: mycluster-free (eu-de)
 ** Target namespace: default
 ** Workspace: cassandra-test
 ** Resource group: Default

!Step 4 1 cassandra.png!
 * Select your previously created cluster 
 * Select the default namespace

!Step 4 2 1 Select Details of cluster.png!
 * Add a name to your cluster for example “cassandra-test”

!image-2020-12-29-16-55-57-447.png!
 * Select *Create* and wait for some time.

 

*Step 4: Verify Installation*
 * Go to the *Resources List* in the Left Navigation Menu:

!image-2020-12-29-16-57-24-395.png!
 * Click on *Clusters* > Select your Cluster.

!resource----list.png!
 * Now you are at your clusters overview page. You will see details of your cluster as below:

!cluster-free-details.png!
 * Here click on *Actions* (in the right corner) and select *Web terminal* from the dropdown menu.
 * Click *install,* then - wait for couple of minutes to finish the process.
 * After completing the installation click on *actions* > *Web terminal* again . 

!web-terminal.png!
 * A terminal will open up
 * Type in the terminal, please change NAMESPACE to the namespace you choose at the deployment setup:

 
{code:java}
$ kubectl get ns{code}
 
{code:java}
$ kubectl get pod -n NAMESPACE -o wide{code}
 
{code:java}
$ kubectl get service -n NAMESPACE{code}
  !image-2020-12-29-17-06-42-587.png!

 

The installation is over. Enjoy!