Agent skill
Kind Setup
Create a Kind cluster in Docker-in-Docker environment
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/devops/kind-setup
SKILL.md
Kind Setup
Create a Kind Kubernetes cluster inside a DinD (Docker-in-Docker) container.
When to use
- Setting up Kubernetes for testing
- Need a Kind cluster inside this container
Steps
-
Verify Docker available
bashdocker infoIf this fails, STOP. DinD is not available.
-
Delete existing cluster
bashkind delete cluster --name ark-cluster 2>/dev/null || true -
Create cluster
bashkind create cluster --name ark-cluster -
Configure kubeconfig with container IP
bashCONTROL_PLANE_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ark-cluster-control-plane) kind get kubeconfig --name ark-cluster --internal | sed "s/ark-cluster-control-plane/$CONTROL_PLANE_IP/g" > ~/.kube/config -
Verify connection
bashkubectl cluster-info
Why the IP replacement?
This container connects to Kind via Docker networking. The default 127.0.0.1 or hostname won't work. Using the container's actual IP ensures connectivity.
Didn't find tool you were looking for?