-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hello,
first I'd like to say thank you. I stumbled across this today and instantly switched from the env based config to your new the annotation based config.
Unfortunately there's an issue with setting host routes for single IPs (i.e. the netmask is /32). This issue is also pressent on dreamcat4/pipework.
The problem is that the script tries to set up a new network including routing which fails for /32.
In https://github.com/kvaps/kube-pipework/blob/master/entrypoint.sh#L226 sipcalc returns nothing, the following ping command either fails or simply hangs.
For a single IP, it's sufficient to add a route to the host device to make routing work (e.g. route add -host 1.2.3.4 dev eth0). So all the IP calculation is not required. This could even work with a subnet (I can't see why it should not), so the whole macvlan creation and stuff is maybe not necessary.