Running K8s Locally With Kind

February 28, 2021

Course Instructor: Elliot Forbes

Hey Gophers! My name is Elliot and I'm the creator of TutorialEdge and I've been working with Go systems for roughly 5 years now. Feel free to reach out to me on twitter - @Elliot_F

So, before we start defining our Kubernetes deployments and services, we need to have somewhere to actually run these services.

In the past, this would be the job of minikube, however recently Kind has become the defacto standard for running a k8s cluster locally on your machine for testing purposes.

Let’s start by installing this:

brew install kind

And then once this has been installed successfully, let’s create a new cluster:

kind create cluster

This will create a cluster that will just be called kind on our local machine.

With this created, you’ll then be able to run:

kubectl cluster-info --context kind-kind

Awesome, we now have a cluster setup and ready to use and deploy to!