From the course: Certified Kubernetes Administrator (CKA) Cert Prep

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Creating a cluster

Creating a cluster

- All right, so the first task is to create a Kubernetes cluster. Create a 3-node Kubernetes cluster using one control plane and two worker nodes. And you can use the usual scripts, but make sure you use set up kubetools, previousversion.sh to set up the previous version because you'll need to do an update later. Let me show you. So to start with, we need to clone the git repository on all of the nodes and after cloning the git repository, we need to run the scripts, set up container.sh is the first one. And then the other one is setup kubetools, previous version. Don't forget the previous version because you really are going to need it if you want to do the cluster update later. So what is next? Well, next on the control node and the control node only, sudo kubeadm in it. So kubeadm in it. Don't forget sudo and only on the control node, but, hey, if you have come this far, you should have done this already a couple of times. So kubeadm in it, as always, will tell you what to do. So…

Contents