DEV Community

Avik Chakraborty
Avik Chakraborty

Posted on

Fall in love with local development - k3d

Let's get motivated first. 3 node Kubernetes cluster up and running from scratch in less than a minute? Wow!!

Isn't it amazing? And it's real. Feel it first.

Image description

Developers crave faster and more accurate feedback on quick and dirty changes. It is too late if one has to wait for a few minutes before it fails. For a cloud-native development team, it is common to make development machine no similar to their production cloud environment.

In cloud if you are using kubernetes as platform why don't you make and use a local kubernetes cluster too? With k3d it's no more a hefty task. No minikube but k3d. Cause it's fast, it supports multi node cluster, it's footprints are only docker images so clean setup-destroy and there are nice integration with other development tools like tilt VScode etc.

Just make sure you have docker installed in your system and follow this link to install k3d.

Install a single master and 2 worker nodes k8s cluster using k3d cluster create -s 1 -a 2

Just make an entry in the makefile to create a simple cluster or keep a config.yaml in your repo to bootstrap your cluster with custom configurations.

Happy coding!!

Top comments (0)