KIND : Kubernetes inside docker
KIND . Check if installed with kind command in terminalbrew install kind
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"
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.
clusters.yml filekind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
kind create cluster --config clusters.yml --name local