Multiple Clusters on a single machine #1116
Unanswered
prodrigues-prodigentia
asked this question in
Q&A
Replies: 1 comment
-
Update:
Any help about how to be able to do it by not writing the port in the URL, and to have access to it by HTTPS is appreciated. I'm liking this project a lot so far, good work, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question / Where do you need Help?
How can I run multiple clusters at the same time (that contain a web application) on a single machine?
I want to have multiple clusters running at the same time, so I can just go to the browser and simply write
https://test.localhost
orhttps://test2.localhost
and go to different web applications (each cluster has one application.)Currently I have two clusters and both of them work if I use the common ports (80 and 443) of the host machine in the
cluster.yml
file. The way to access the applications is working properly with the help of Acrylix (I'm using Windows/WSL) but I'm not able to run both clusters at the same time since it doesn't let me start a cluster if the port he needs to use is already allocated (which it is, since it's being used by the other cluster):FATA[0019] Failed to add one or more helper nodes: runtime failed to start node 'k3d-test-serverlb': docker failed to start container for node 'k3d-test-serverlb': Error response from daemon: driver failed programming external connectivity on endpoint k3d-test-serverlb (5b5764a4f7304dadedfeea161b3cf45863e17c0e180d30e48dccf1dbf00191d6): Bind for 0.0.0.0:443 failed: port is already allocated
After that I tried, even if it's not ideal, to run the second cluster with different host ports but for some reason I'm not being able to use the application in the browser (even if I specify the port with for example
https://test.localhost:81
.)The
cluster.yml
file is like the following (the other one is basically the same but with a differentname
,host
andhostPort
):After creating the cluster with the previously shown configuration I install the cert-manager:
And then apply the following manifests:
As I said before this works when it's just a single cluster, but I have not been able to make a second cluster work. If I try to use the same host ports it fails, if I try to use different ports it seems to not be accessible through the browser.
I would appreciate any help you can give, thank you!
Scope of your Question
Beta Was this translation helpful? Give feedback.
All reactions