Some Common Kind Commands
1. Creating A Cluster
- Enter the following command to create a Kind Kubernetes Cluster (default name is “kind”):
kind create cluster
- Enter the following command to create a Kind Kubernetes Cluster with a custom name:
kind create cluster --name=[NAME_OF_CLUSTER]
- Enter the following command to create a cluster with a custom node image:
kind create cluster --image=[IMAGE]
- Enter the following command to create a Kind Kubernetes Cluster using a custom configuration for the cluster:
kind create cluster --config=[FILE_NAME]
- Enter the following command to create a Kind Kubernetes Cluster while assigning a waiting time for the control plane to go up:
kind create cluster --wait [TIME]
2. Loading An Image Into Your Cluster
- Docker images can be loaded into your cluster nodes using the following command:
kind load docker-image [DOCKER_IMAGE_NAME]
- Image archives can be loaded using the following command:
kind load image-archive /my-image-archive.tar
3. Get The List Of Clusters
- To check out the list of cluster you created using Kind, enter the following command:
kind get clusters
4. Exporting Logs
- In order to export logs of your Kind Cluster, enter the following command:
kind export logs
5. Deleting The Kind Cluster
- You just have to simply enter the following command to delete the Kind cluster.
kind delete cluster
- or if you have named your cluster, then enter the name using the –name flag.
kind delete cluster --name [NAME_OF_CLUSTER]
How To Use Kind To Deploy Kubernetes Clusters?
Kind also referred to as Kubernetes in Docker is a popular open-source tool used for running a Kubernetes cluster locally. Kind uses Docker containers as Cluster Nodes making it substantially faster than its alternatives like Minikube or Docker Desktop which uses a Virtual Machine. Kind is commonly used to test Kubernetes clusters on local machines. Kind is useful specifically when the user wants to create a multi-Node cluster since Minikube or Docker Desktop does not provide any such functionality. In this article we will learn about KinD and see how to use KinD for Deploying Kubernetes clusters.
Contact Us