cluster-api-provider-proxmox icon indicating copy to clipboard operation
cluster-api-provider-proxmox copied to clipboard

Default gateway creation

Open wikkyk opened this issue 1 year ago • 1 comments

From @65278:

At the moment, we try to create a default gateway for every interface. That only works by accident and netplan can stop working any time.

wikkyk avatar Apr 22 '24 14:04 wikkyk

Unorganized thoughts:

  1. I've introduced metrics to routes in 0.4.0, so the default interface route never conflicts with other routes, so netplan can no longer fail on randomly changing the order of interfaces here ... but all extra interface routes get the same metric, so if it starts erroring, it'll still fail.
  2. getNetworkConfigDataForDevice always sets a gateway. An cluster-api-provider-in-cluster-ipam object can never not have a gateway. This needs to be patched upstream.
  3. Perhaps we don't want to use the gateway of IPAM unless we're at the default device. For all further interfaces we can set routes using the newly introduced routing templating from 0.4.0. That way we don't need to change upstream. This is not my preferred solution.

65278 avatar Apr 24 '24 10:04 65278