How to change the cluster in cka exam

I know that after every question we have to return to node01 and after that we have to run the given command for cluster change. But I wanted to know that how to return to the base node (node01).

Hello @gaurav1,
You should ssh to the node for example ssh node-1 . then you can return by exit command.

Actually I want to change the cluster after every question, above approach is correct for that, I think above approach is used for accessing node?

Hi @gaurav1 ,

Disclaimer: - It’s for a demo purpose and not related to the official exam: -

I believe you are familiar with the below command.

basenode$ kubectl config use-context demo-context

As usual practice, you run the command to check the number of nodes:-

basenode$ kubectl get nodes

master-1 xxxx
worker-1 xxxx

As per the question, Suppose in our lab you have to troubleshoot some stuff on the worker-1 node, right?

so you need to do SSH from basenode to worker-1.

Don’t worry about the password. Setup are passwordless.

basenode$ ssh worker-1

tada, logged In to worker-1.

worker-1$ .....

You completed the task as per question demand and at the end type “logout” or “exit” on the terminal to go back to the basenode.

# logout also will do the same
worker-1$ exit

Finally, back to the basenode.

basenode$

Let me know if you have queries related to this.

Regards,
KodeKloud Support

1 Like

Ok, Thanks a lot for given information…