Set up minikube on Windows
In my work as n8n's tech writer, I need to maintain some Kubernetes-based deployment guides. This blog post contains the steps for setting up minikube and kubectl on Windows, running it, and testing n8n's Kuberenetes hosting configurations. This is a letter to my future self. Some steps are n8n-specific, but this can also serve as a quick guide for any Kubernetes testing.
Install minikube and kubectl
- Follow Step 1 of the minikube installation guide. Note the dependencies: make sure you have Docker installed and running. You'll already have this if you followed your Setting up a new Windows PC guide.
- Start minikube, with extra CPUs:
The default CPUs is 2. This isn't enough for n8n.
- Install kubectl:
Test an n8n configuration
- Clone the repo and navigate into the new directory:
- Create a new resource:
If you get errors, re-run the command. On first setup, there is (in effect) a race condition where different parts of the configuration rely on each other, but they're all being set up.
- Check if everything is working:
Status should be
Running. If it says
ContainerCreating, try again in a few minutes.
- Set up port forwarding so you can access n8n in your browser:
n8n is now available on localhost:5678.
kubectl delete -f .