Make tunnel.NAME.(interface|local) a node specific network config#2263
Make tunnel.NAME.(interface|local) a node specific network config#2263
tunnel.NAME.(interface|local) a node specific network config#2263Conversation
|
@breml I think we should make all the tunnel.XYZ keys be node specific as most tunnels use local IPs and the like anyway. |
|
@stgraber I double checked the My proposal would be:
(taken from https://linuxcontainers.org/incus/docs/main/reference/network_bridge/#configuration-options) |
|
You're right for the VXLAN mesh case that we care about now, but for the other types of tunnel, we'd definitely want to have some control as to what machine has a given tunnel set up. Otherwise if you combine a cluster-wide VXLAN tunnel with a regular GRE or VXLAN tunnel, you'll get all the servers suddenly sending the same traffic over that extra tunnel which may then send it back once of the other tunnels, creating a loop. Anyway, we may be able to make your approach work by being pretty careful about when we bring up the tunnel. If dealing with GRE, that's easy, we need a local IP, so if it's not set in the node config, we skip the tunnel. VXLAN is a bit trickier because of the multicast support, for that one, we basically need to check if we have a remote IP defined, then if we do, a local IP also becomes required for the tunnel to be brought online. |
|
OK, I will implement the verification of the node specific config settings based on my table above, fix the linter issues and I will have a look at the conditions for when to bring up which tunnel and update the PR. |
tunnel.NAME.interface a node specific network configtunnel.NAME.(interface|local) a node specific network config
|
@stgraber I just looked at the code. The two checks you have mentioned in #2263 (comment) are already present. For gre and for vxlan. So think we are good on that side. |
55df242 to
a12aad1
Compare
Signed-off-by: Lucas Bremgartner <lucas.bremgartner@futurfusion.io>
* tunnel.NAME.interface * tunnel.NAME.local Signed-off-by: Lucas Bremgartner <lucas.bremgartner@futurfusion.io>
a12aad1 to
5f6f2f9
Compare
No description provided.