Kubernetes Setup

Learning about Kubernetes basics

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

  1. Create VMs which are part of K8s cluster (master and worker nodes).
  2. Disable SELinux and SWAP on all nodes.
  3. Install kubeadm, kubelet, kubectl and docker in all nodes.
    • start and enable docker and kubelet in all nodes.
  4. Initialize the master node.
  5. Configure Pod network in master node.
  6. Join all worker nodes in cluster.
  7. 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]