kind
is a command-line application for building Kubernetes clusters using
Docker containers as "nodes."
.
├── cmd
│ └── kind
│ ├── build/ # Build images
│ ├── create/ # Create cluster
│ ├── delete/ # Delete cluster
│ ├── get/ # List kubeconfigs and clusters
│ └── kind.go # Root command
├── main.go # Entrypoint
The CLI is built using cobra and you can see the app's entrypoint, main.go
, at the root level of the repository.
The CLI commands can be found in the directory cmd. Here, you will find
the root command kind.go where we register other commands to build
images; create, delete, and list clusters; list kubeconfig files for cluster;
and setup logging.
├── pkg
│ ├── build # Build and manage images
│ ├── cluster # Build and manage clusters
│ ├── docker # Interact with Docker
│ ├── exec # Execute commands
│ ├── fs # Interact with the host file system
│ ├── kustomize # Work with embedded kustomize commands
│ ├── log # Logging
│ └── util
kind
commands rely on the functionality of the packages directory.
Here, you will find everything needed to build container images for kind
;
create clusters from these images; interact with the Docker engine and file system; customize configuration files; and logging.