I am installing kind on Mac OS, For other Operating Systems below is installation Guide
https://kind.sigs.k8s.io/docs/user/quick-start/
| ❭ brew install kind
==> Downloading https://ghcr.io/v2/homebrew/core/kind/manifests/0.11.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/kind/blobs/sha256:872579a3058f9d1e65261effc0b527b80a06fab5c6ea993645a136c19c282d7b
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:872579a3058f9d1e65261effc0b527b80a06fab5c6ea993645a136c19c282d7b?se=2021-
######################################################################## 100.0%
==> Pouring kind--0.11.0.catalina.bottle.tar
Following commands are supported by Kind
| ❭ kind
kind creates and manages local Kubernetes clusters using Docker container ‘nodes’
Usage:
kind [command]
Available Commands:
build Build one of [node-image]
completion Output shell completion code for the specified shell (bash, zsh or fish)
create Creates one of [cluster]
delete Deletes one of [cluster]
export Exports one of [kubeconfig, logs]
get Gets one of [clusters, nodes, kubeconfig]
help Help about any command
load Loads images into nodes
version Prints the kind CLI version
Flags:
-h, –help help for kind
–loglevel string DEPRECATED: see -v instead
-q, –quiet silence all stderr output
-v, –verbosity int32 info log verbosity
–version version for kind
Use “kind [command] –help” for more information about a command.
| ❭ kind create cluster --name cluster1 --image kindest/node:v1.19.1
ERROR: failed to create cluster: failed to list clusters: command "docker ps -a --filter label=io.x-k8s.kind.cluster=cluster1 --format '{{.Names}}'" failed with error: exit status 1
Command Output: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Make sure your docker is running
| ❭ kind create cluster --name cluster1 --image kindest/node:v1.19.1
Creating cluster "cluster1" ...
✓ Ensuring node image (kindest/node:v1.19.1) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-cluster1"
You can now use your cluster with:
kubectl cluster-info --context kind-cluster1
Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community 🙂
| ❭ kind get clusters cluster1 | ❭ kubectl get nodes NAME STATUS ROLES AGE VERSION cluster1-control-plane Ready master 110s v1.19.1 | ❭ kubectl get ns NAME STATUS AGE default Active 3m7s kube-node-lease Active 3m8s kube-public Active 3m8s kube-system Active 3m8s local-path-storage Active 3m4s | ❭ kubectl get all --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system pod/coredns-f9fd979d6-5txmg 1/1 Running 0 3m3s kube-system pod/coredns-f9fd979d6-br4hn 1/1 Running 0 3m2s kube-system pod/etcd-cluster1-control-plane 1/1 Running 0 3m13s kube-system pod/kindnet-wzwgc 1/1 Running 0 3m3s kube-system pod/kube-apiserver-cluster1-control-plane 1/1 Running 0 3m14s kube-system pod/kube-controller-manager-cluster1-control-plane 1/1 Running 0 3m14s kube-system pod/kube-proxy-sxmjt 1/1 Running 0 3m3s kube-system pod/kube-scheduler-cluster1-control-plane 1/1 Running 0 3m14s local-path-storage pod/local-path-provisioner-78776bfc44-b6z4p 1/1 Running 0 3m3s NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 3m21s kube-system service/kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP,9153/TCP 3m19s NAMESPACE NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE kube-system daemonset.apps/kindnet 1 1 1 1 1 <none> 3m18s kube-system daemonset.apps/kube-proxy 1 1 1 1 1 kubernetes.io/os=linux 3m19s NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE kube-system deployment.apps/coredns 2/2 2 2 3m19s local-path-storage deployment.apps/local-path-provisioner 1/1 1 1 3m18s NAMESPACE NAME DESIRED CURRENT READY AGE kube-system replicaset.apps/coredns-f9fd979d6 2 2 2 3m3s local-path-storage replicaset.apps/local-path-provisioner-78776bfc44 1 1 1 3m3s
| ❭ kubectl create ns test123 namespace/test123 created | ❭ kubectl get ns NAME STATUS AGE default Active 5m18s kube-node-lease Active 5m19s kube-public Active 5m19s kube-system Active 5m19s local-path-storage Active 5m15s test123 Active 12s | ❭ kubectl apply -f deployments/deployment.yaml -n test123 deployment.apps/example-deploy created | ❭ kubectl get all -n test123 NAME READY STATUS RESTARTS AGE pod/example-deploy-7765698dd7-9jmqn 1/1 Running 0 87s pod/example-deploy-7765698dd7-rtfcl 1/1 Running 0 87s NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/example-deploy 2/2 2 2 87s NAME DESIRED CURRENT READY AGE replicaset.apps/example-deploy-7765698dd7 2 2 2 87s All this cluster is setup on a docker image | ❭ docker images |grep kind kindest/node v1.19.1 37ddbc9063d2 9 months ago 1.33GB
| ❭ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3fe3692950db kindest/node:v1.19.1 “/usr/local/bin/entr…” 23 minutes ago Up 23 minutes
127.0.0.1:53968->6443/tcp cluster1-control-plane
| ❭ kind delete clusters cluster1
Deleted clusters: ["cluster1"]
| ❭ kind get clusters
No kind clusters found.
