Kubernetes is orchestraton layer of various Docker and/or containerization manager. Let see in this artcile how to setup a Kubernetes cluster or in short K8s cluster.
Steps involed in setting up Kubernetes Cluster
- Create VMs which are part of K8s cluster (master and worker nodes).
- Disable SELinux and SWAP on all nodes.
- Install kubeadm, kubelet, kubectl and docker in all nodes.
- start and enable docker and kubelet in all nodes.
- Initialize the master node.
- Configure Pod network in master node.
- Join all worker nodes in cluster.
- Verify the congigurations
Create VMs
In this example I show four VMs (1 Master and 3 Worker nodes) created in Google Cloud Platform.
[Read More]