Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Latest commit

 

History

History
72 lines (50 loc) · 2.31 KB

kind.md

File metadata and controls

72 lines (50 loc) · 2.31 KB

Table of Contents generated with DocToc

kind - kubernetes in docker

kind provides the quickest way to set up clusters for use with the KubeFed control plane.

Download and Install kind

If you don't yet have kind installed, you can run the following script to download and install a known working version.

./scripts/download-e2e-binaries.sh

Make sure that your GOBIN directory is in your PATH as that is where kind will be installed. Your GOBIN directory should be at $(go env GOPATH)/bin:

Create Clusters

You can proceed to create clusters once you have kind available in your path.

Run the following command to create 2 kind clusters:

./scripts/create-clusters.sh

The NUM_CLUSTERS is 2 by default. Set that variable before invoking the script if you'd like to change the default:

NUM_CLUSTERS=<num> ./scripts/create-clusters.sh

The KIND_TAG is v1.24.2@sha256:1f0cee2282f43150b52dc7933183ed96abdcfc8d293f30ec07082495874876f1 by default. Image kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 is used as node docker image for booting the cluster.

You can use KIND_IMAGE or KIND_TAG to specify the image as you want.

KIND_TAG=v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 ./scripts/create-clusters.sh
KIND_IMAGE=kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 ./scripts/create-clusters.sh

Delete Clusters

Run the following command to delete 2 kind clusters:

./scripts/delete-clusters.sh

The NUM_CLUSTERS is 2 by default. Set that variable before invoking the script if you'd like to change the default:

NUM_CLUSTERS=<num> ./scripts/delete-clusters.sh