Set up Master and Worker Node on Rancher Cluster
Focus
Focus
CN-Series

Set up Master and Worker Node on Rancher Cluster

Table of Contents

Set up Master and Worker Node on Rancher Cluster

After creating a local cluster on Rancher UI, set up a Master and Worker node, do the following:
  1. Go to Rancher UI and click Add Cluster.
  2. Click Existing nodes.
  3. Enter your Cluster name and then select Flannel from the Network provider drop-down.
  4. Retain the default values for all other fields and then click Next.
  5. Under Node options, select all three Node Role options, and then run the given command into the Master node using SSH.
  6. Verify that the Master node is added successfully.
  7. SSH into each Worker node and run the following command:
    sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run rancher/rancher-agent:v2.5.8 --server https://10.8.70.226 --token 547vwm6nmvnbr877w2mfvjmst6m892vtzztgh2mfg59m6t7wbknbfr --ca-checksum 1ea40f7c3499beb82f4582ecf05cc4300baea8abee079099e87b52c80e40a7bb --worker
On successfully running the command on one Master and two Worker nodes, you will see that Rancher cluster is ready as shown below: