![Lead Image © Kirsty Pargeter, Fotolia.com Lead Image © Kirsty Pargeter, Fotolia.com](/var/ezflow_site/storage/images/archive/2021/64/run-kubernetes-in-a-container-with-kind/po-19029-fotolia-kirsty_pargeter_fotolia-w_rfel_resized.png/185836-1-eng-US/PO-19029-Fotolia-Kirsty_Pargeter_Fotolia-W_rfel_resized.png_medium.png)
Lead Image © Kirsty Pargeter, Fotolia.com
Run Kubernetes in a container with Kind
One of a Kind
Not often are you compelled to test unfamiliar software in the time it takes to read just a few lines on its website. Of course, the software has to be extremely accessible to allow you to get started quickly. An interesting application that recently fell into this category is Kind [1], a multinode Kubernetes distribution that is quick to install and configure for testing. The reason Kind was so intriguing is that it uses Docker containers for its nodes. Think about that for a minute and consider how versatile such an approach would be for quick testing. The clever Kind manages to squeeze a Kubernetes cluster inside containers.
In this article, I look at creating a freshly built Kind cluster installation to show off the infrastructure created by Kind. You will see how one container runs an entire node – in this case, the control plane and master node.
Thank You, Kindly
Some really well constructed documentation about the Kind installation can be found as a Quick Start page online [2]. You should be the root user or prepend your commands with sudo
for most of the commands that follow. If needed, install Docker CE first [3] (choosing the correct Operating System for your needs).
To begin, install kubectl
so you can interact with your Kubernetes cluster in a coherent way. The Kind documentation points you to a page online if you get stuck [4]. In my case, I just needed to run the following commands to download the binary file, check that it was safe, and download and check the checksum file:
$ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" $ curl -LO...
Buy this article as PDF
(incl. VAT)
Buy ADMIN Magazine
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Most Popular
Support Our Work
ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.
![Learn More”>
</a>
<hr>
</div>
</div>
<div class=](https://www.admin-magazine.com/var/ezflow_site/storage/images/media/images/learn-more/211417-1-eng-US/Learn-More.png)