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!