In this post we’re going to take a quick look at how to run Rancher in a Kubernetes cluster locally on macOS for development and testing purposes. There are several ways to run Kubernetes locally. In this guide I’m going to focus on just one of them: k3d — short for k3s in Docker.
k3d is a lightweight wrapper to run k3s in Docker. Its clear advantage over kind is that it can run on Linux. Compared to Multipass it does not require a virtual machine. Supports multi-cluster development unlike Docker Desktop. It’s faster than Minikube and it uses a certified Kubernetes distribution.
When you’re finished you’ll have Rancher running inside a k3s Kubernetes cluster which can be used to manage the cluster itself. This guide assumes you’ve never run Kubernetes before and, therefore, also serves as a practical getting started guide for Kubernetes itself.