Good day!
I have recently picked up Incus as a technology I want to use for my Homelab needs. As a context - I do not have a lot of experience with networking, still on a path of learning, as such the following questions might not be formulated too well.
I wanted to see whether it was possible for Container Instances deployed in different Cluster Members to communicate to one another if they are part of the same configured network.
In this case, to test it, I have created two VMs locally, installed Incus and set up a cluster.
root@debian12:/home/vagrant# incus cluster list -c nurs
+------+-----------------------------+------------------+--------+
| NAME | URL | ROLES | STATUS |
+------+-----------------------------+------------------+--------+
| vm1 | https://192.168.121.38:8443 | database-leader | ONLINE |
| | | database | |
+------+-----------------------------+------------------+--------+
| vm2 | https://192.168.121.53:8443 | database-standby | ONLINE |
+------+-----------------------------+------------------+--------+
root@debian12:/home/vagrant# incus network list -c ntm4us
+------------+----------+---------+---------------+---------+---------+
| NAME | TYPE | MANAGED | IPV4 | USED BY | STATE |
+------------+----------+---------+---------------+---------+---------+
| eth0 | physical | false | | 0 | |
+------------+----------+---------+---------------+---------+---------+
| lo | loopback | false | | 0 | |
+------------+----------+---------+---------------+---------+---------+
| my-network | bridge | true | 10.80.34.1/24 | 3 | CREATED |
+------------+----------+---------+---------------+---------+---------+
root@debian12:/home/vagrant# incus list -c ns4L
+-------------------+---------+---------------------+----------+
| NAME | STATE | IPV4 | LOCATION |
+-------------------+---------+---------------------+----------+
| ubuntu-container | RUNNING | 10.80.34.247 (eth0) | vm1 |
+-------------------+---------+---------------------+----------+
| ubuntu-container2 | RUNNING | 10.80.34.173 (eth0) | vm2 |
+-------------------+---------+---------------------+----------+
| ubuntu-container3 | RUNNING | 10.80.34.195 (eth0) | vm1 |
+-------------------+---------+---------------------+----------+
Basically, all the containers are attached to the my-network
network for the cluster.
The problem is ubuntu-container
and ubuntu-container3
can communicate with one another, but cannot reach the ubuntu-container2
, and vice versa.
I feel like having communication like this is not possible to be done that easily, but I would expect that this would be a possibility.
For the situation described above, I have several questions:
- Is the above even possible?
- If it is possible, is it recommended?
- If it is possible - how would I go about doing so? I do not need detailed instructions, if possible, point me to the technologies and methods I could potentially use, so that I could learn them myself.
Thank you kindly.