Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change service interface to
macvlan
when using DHCP
When using DHCP for LB services, the resulting IP was assigned to the `serviceInterface` while most (not all) DHCP communication was done through a per-service `macvlan` interface that is created on demand. This has been the cause of DHCP lease renewal failures for some users, as the response packets from the server never reached kube-vip. For more details, see issue #871. To remedy this, the primary interface used for a service is now being set to the `macvlan`. Consequently, the IP address is also assigned to it. As a result, all traffic related to an LB service (DHCP or not) is now originating from and sent to the per-service `macvlan` interface that is tied to the user-configured `serviceInterface`. Fixes #871 Signed-off-by: Til Blechschmidt <me@tibl.dev>
- Loading branch information