Skip to content

Creating a k8s cluster

Course: Kubernetes Part 1 - chapter 4

  1. minukube
  2. kind - https://kind.sigs.k8s.io/docs/user/quick-start/
  1. GKE
  2. AWS K8s
  3. vultr
  • Create a 1 node cluster
kind create cluster --name local
  • Check the docker containers you have running
docker ps
  • You will notice a single container running (control-pane)
  • Delete the cluster
kind delete cluster -n local
  • Create a clusters.yml file
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
  • Create the node setup
kind create cluster --config clusters.yml --name local
  • Check docker containers
docker ps

Now you have a node cluster running locally

minikube start
  • Run docker ps to see the single node setup

💡 A single node setup works but is not ideal. You don’t want your control pane to run containers/act as a worker.