Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run two instances of K3S on the same machine

Tags:

kubernetes

k3s

I'd like to run two instances of k3s on the same machine.

Let's say I have already two different master servers.

What I'd like to do is to install:

  1. A K3S instance to deal with Master #1.
  2. A second instance to deal with Master #2.

First instance will be managed by myself while the second instance will be managed by my customer.

Is there a way to setup two instances of K3S on the same machine?

like image 261
Manitoba Avatar asked Sep 18 '25 16:09

Manitoba


1 Answers

Running multiple instances of k3s is not supported out of the box.
You can however use tools like k3d (running inside docker container), or multipass-k3s (running inside a VM).

chroot jail is not really an option. Rootless K3s is still in experimental stage [reference], and applications running as root can easily break out of jail.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!