Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Suport multiple clusters in single machine when using talos in docker #8141

Closed
Tracked by #8010 ...
paucampana opened this issue Jan 11, 2024 · 0 comments · Fixed by #8545
Closed
Tracked by #8010 ...

Suport multiple clusters in single machine when using talos in docker #8141

paucampana opened this issue Jan 11, 2024 · 0 comments · Fixed by #8545
Assignees

Comments

@paucampana
Copy link
Contributor

Feature Request

I would like to be able to create multiple talos clusters in docker in the same machine. Something like:

#creation of first cluster
talosctl cluster create --name cluster-1 --cidr 10.0.0.0/24
#creation of second cluster
talosctl cluster create --name cluster-2 --cidr 10.1.0.0/24

Description

With the current state of talos, when I try to create multiple cluster specifying different CIDRs for each of the clusters:

#creation of first cluster
talosctl cluster create --name cluster-1 --cidr 10.0.0.0/24
#creation of second cluster
talosctl cluster create --name cluster-2 --cidr 10.1.0.0/24

I get the following error:

creating controlplane nodes
1 error occurred:
	* Error response from daemon: driver failed programming external connectivity on endpoint cluster-2-controlplane-1 (2d9f0d9b4b4fdc138024dbe66457737e63b5470c6cc90a4cab934857be120163): Bind for 0.0.0.0:50000 failed: port is already allocated

The current problem is that the container is configuring the following bindings:

5000:5000
6443:6443

It is not configurable, so when the second cluster is created, it fails as it tries to use the same ports.

As a user I would like to be able to have multiple clusters, without taking care of the bindings. For example when creating multiple kind clusters in the same machine, the binding is done automatically in different ports:
image

# for free to subscribe to this conversation on GitHub. Already have an account? #.