KIND : Kubernetes inside docker

  1. Install KIND . Check if installed with kind command in terminal
brew install kind
  1. Install kubectl . Command line tool for interacting with kubernetes cluster. Check if installed with kubectl command in terminal
   curl -LO "<https://dl.k8s.io/release/$>(curl -L -s <https://dl.k8s.io/release/stable.txt>)/bin/darwin/arm64/kubectl"

Single node setup

kind create cluster --name local
docker ps
kind delete cluster -n local

This will just start one node ( which has to behave as both worker and master node ) so u should delete it and not create nodes this way.

Multi node setup

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
 kind create cluster --config clusters.yml --name local