Kind: Kubernetes in Docker

While I was playing with act the other day, I found a tool called kind (Kubernetes in Docker) in that repository. With kind, Kubernetes clusters can easily be created in a Docker container.

According to the official document, being an alternative to Docker Compose out of scope for kind. That said, the home page also suggests kind may be used for “local development”.

kind was primarily designed for testing Kubernetes itself, but may be used for local development or CI.

Although you cannot expect kind to have every aspect that Docker Compose has, kind can be used for some kind of work that would be done with Docker Compose like local development.

Note that some components of Kubernetes like kube-proxy require some iptables feature and maybe you have to rebuild Kernel to enable them. I had to enable the following Kernel features to make the cluster ready and to use Ambassador:

  • “multiport” Multiple port match support (CONFIG_NETFILTER_XT_MATCH_MULTIPORT)
  • “statistic” match support (CONFIG_NETFILTER_XT_MATCH_STATISTIC)

See Also

Gentaro "hibariya" Terada

Otaka-no-mori, Chiba, Japan
Email me

Likes Ruby, Internet, and Programming.