-
-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Allow using existing (or default) docker bridge network, to share network between clusters #111
Comments
I will investigate about this one, but any insights would be much appreciated |
Re-Using existing networks or using the default bridge network sounds like a good idea 👍 |
the new flag is quite ready but there is some concern about the way to deal with creating/connecting to the chosen network I noticed that by default, a network with name of the cluster is always created, I guess this should be conserved. And additionally I will just add or use a network to connect the cluster to. So far it seems to be easy enough but I'm wondering if there is not something else to carry about |
This is my current workaround, on each cluster I create a service and an endpoint pointing to the other clusters, using a template like this:
|
Hello I have a Consul and a Vault instance in containers attached to a specific Docker network (let's say
But if I ping the same service from inside a pod, the resolution does not work:
I can reach the containers by their IPs inside the pods though. So it is only a DNS issue. I tried to create a service and a endpoint like @luisdavim but without success. Can someone give me some clues please? Edit: I'm on Linux. |
|
Hi, I'd like to use k3d as a lightweight solution to test multi-cluster controllers. Currently, there's no easy way to call the Kubernetes API of, e.g., k3d-cluster1 from a pod in k3d-cluster2. I can connect the server container of cluster1 to the cluster2 bridge network and vice versa (with
docker metwork connect
), but cluster1's server certificate isn't valid for an IP in cluster2.With kind, clusters are created in the default docker bridge network, so they are reachable from one another.
A
--network DOCKER_NETWORK_NAME
option could be added to thek3d create
subcommand. The network would be created if it doesn't exist.This issue differs from PR #53 in that it is more general (a
--host
option could actually also be used to use the host network rather than a bridge network).The text was updated successfully, but these errors were encountered: