Home > Software design >  How to simulate node joins and failures with a local Kubernetes cluster?
How to simulate node joins and failures with a local Kubernetes cluster?

Time:11-06

I'm developing a Kubernetes scheduler and I want to test its performance when nodes join and leave a cluster, as well as how it handles node failures.

What is the best way to test this locally on Windows 10?

Thanks in advance!

CodePudding user response:

Unfortunately, you can't add nodes to Docker Desktop with Kubernetes enabled. Docker Desktop is single-node only.

I can think of two possible solutions, off the top of my head:

  • You could use any of the cloud providers. Major (AWS, GCP, Azure) ones have some kind of free tier (under certain usage, or timed). Adding nodes in those environments is trivial.
  • Create local VM for each node. This is less than perfect solution - very resource intesive. To make adding nodes easier, you could use kubeadm to provision your cluster.
  • Related