DevOps Buzz
Search…
Bash / Shell
Bitbucket
Distros
Elasticsearch
General
Guidelines / Standards
microk8s
Prometheus
RabbitMQ
VirtualBox
Cheat Sheet

Install

1
wget https://github.com/kubernetes-sigs/kind/releases/download/v0.8.1/kind-linux-amd64
2
chmod +rx kind-linux-amd64
3
sudo mv kind-linux-amd64 /usr/local/bin/kind
Copied!

Cluster Management

Create

Find the image tag you want to use, which will be the Kubernetes verison.
Get the image tag and sha256.
Create a config file, for example.
kind.yaml
1
kind: Cluster
2
apiVersion: kind.x-k8s.io/v1alpha4
3
networking:
4
apiServerAddress: 192.168.0.102 # DEFAULT 127.0.0.1
5
nodes:
6
- role: control-plane
7
image: kindest/node:[email protected]:ab3f9e6ec5ad8840eeb1f76c89bb7948c77bbf76bcebe1a8b59790b8ae9a283a
8
- role: worker
9
image: kindest/node:[email protected]:ab3f9e6ec5ad8840eeb1f76c89bb7948c77bbf76bcebe1a8b59790b8ae9a283a
Copied!
Create the cluster.
1
kind create cluster --name kind-001 --config ./kind.yaml
Copied!
Alternatively, you can run:
1
kind create cluster --name kind-001 --image kindest/node:[email protected]:ab3f9e6ec5ad8840eeb1f76c89bb7948c77bbf76bcebe1a8b59790b8ae9a283a
Copied!

Delete

1
kind delete cluster --name kind-001
Copied!

Kubeconfig

Get kubeconfig

1
kind get kubeconfig --name kind-001
Copied!