Skip to content

P4: Custos Deployment Custos Deployment Step 2

anbadrin edited this page May 6, 2022 · 12 revisions

Custos Deployment Step 2 - Configuring clusters on Rancher

Back to Home

Create and Setup VM's

  1. Create 3 VM's on Jetstream 1
  2. Setup local SSH on all 3 VM's to access it using SSH Follows the below steps: a. Generate a ssh-keygen on your local machine b. Add the public key to the authorized_keys file in the .ssh folder in the VM's
  3. Setup password for the VM's using the command sudo passwd <username_for_vm>

Setting up the Nodes

  1. Click on Add cluster on the top right corner and select Existing Nodes

img

  1. Enter any name for the cluster

img

  1. Select the network provider as Calico

Selecting the default provider was causing issues. Fixed this by referring to [Team Terra] (https://github.com/airavata-courses/terra/wiki/Step-2:-Setting-up-Kubernetes-cluster-using-Rancher)

img

  1. Select etcd, Contol Plane and worker for the Master node.

    Click on advanced options.

    Add the ip address of your master node and the node name.

img

  1. A command is generated below based on the above settings.

    This command is to be run on the Master node. The outputs are also given below.

img

img

img

img

  1. Wait for a while until the provisioning is completed and the master node is started and active. Once it is active, click on the 3 dots on the right hand side of the cluster and click on edit.

img

  1. Scroll till the bottom of the page and add the ip and the node name for the 2nd VM as worker node.

img

  1. Copy the generated command and run on the node for the worker to be created. The outputs are also given below.

img

img

img

img

Perform similar steps as above to create the second worker node as well.

  1. The final Rancher UI should have the 3 nodes showing in the cluster and it should be active.

img

img

The Configuration of clusters on Rancher is completed.

References

Thank you Team Terra

Clone this wiki locally