Table of Contents generated with DocToc
kind provides the quickest way to set up clusters for use with the KubeFed control plane.
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.shMake 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:
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.shThe 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.shThe 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.shKIND_IMAGE=kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 ./scripts/create-clusters.shRun the following command to delete 2 kind clusters:
./scripts/delete-clusters.shThe 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