☸️ KiND - Kubernetes IN Docker
kind is a tool for running local Kubernetes clusters using Docker container "nodes". kind was primarily designed for testing Kubernetes itself, but may be used for local development or CI.
Prerequisites
- You have
kind
installed and setup locally in your system, refer to the docs for installation - Ensure you have cluster-admin access to the Kubernetes cluster.
- Also you have installed the
kubectl
and in the path, refer to the docs for installation - Verify by running
kubectl version
- Also you have installed the
- Ensure you have the
helm
package manager installed and the path, refer to the docs for installation- Verify by running
helm version
- Verify by running
Setup
- First, clone the Kubernetes Goat repository locally by running the following command
git clone https://github.com/madhuakula/kubernetes-goat.git
- Navigate to the folder for setup and installation of the Kubernetes Goat using KiND
cd kubernetes-goat/platforms/kind-setup
- Run the following command to set up the KIND cluster
bash setup-kind-cluster-and-goat.sh
- Now we have the Kubernetes Goat setup up and running, refer to Getting Started for next steps