How to Install Kind Cluster

To test out Kubernetes, there are many ways to do it as local installation, such as minikube, multi vms with vagrant, and manual installation using linux lxc containers with tutorials from “kubernetes the hard way“, etc. In this article, we are going to talk about one of the most convenient ways. which is to install kind cluster.

Kind cluster is open sourced. you can find it on github, it uses docker to simulate kubernetes on cloud, to install it.

  1. install go (please refer to How to install Go on Ubuntu)
  2. install docker
# install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# install docker
brew install docker

3. install kind

  • on linux
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
chmod +x ./kind
mv ./kind /some-dir-in-your-PATH/kind
  • on mac
brew install kind

4. kind test

  • create kind cluster
kind create cluster
  • list created clusters
kind get clusters
  • delete a cluster
kind delete cluster

5. install kubectl

kubectl is needed to test any kubernetes cluster, it should work the same way as on cloud

on linux

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

please find kubectl document at https://kubernetes.io/docs/tasks/tools/#kubectl

please checkout ~/.kube/config to make sure the client is referring the correct cluster address.

please leave a comment below if you have any questions.

https://kind.sigs.k8s.io/

Share This

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*
*