Installing a Kubernetes cluster on macOS using k3d

Running k3d on macOS is very simple. Below is a quick and diryt recipe.

Prerequisites

Use Homebrew to install k3d


    brew install k3d
        

Create your Kubernetes cluster


    k3d create
        

Get the KUBECONFIG file and export it to your environment


    export KUBECONFIG="$(k3d get-kubeconfig --name='k3s-default')"
        

Verify your cluster is running


    kubectl get pods --all-namespaces
        

And voila that is it!

Posted April 8th, 2020

Up