Open SerialVelocity opened 5 years ago
This is landing today thanks to @leonnicolas 🚀 🚀
@squat @leonnicolas Could you give an example of how to disable private IPs? Do I need to set kilo.squat.ai/force-internal-ip
to an empty string? (my hosts have private IPs that cannot be used or all networking breaks)
Maybe we need to enable setting the annotation kilo.squat.ai/force-internal-ip=""
to force disabling privateIPs
Ok, worth reopening this issue then @squat as the PR wasn't for this? It would be nice if there was also a flag to disable it so an annotation isn't necessary if there are no private IPs in the cluster.
Reopening :) #104 allowed adding nodes to the mesh that don't have private IPs, but doesn't provide a programmatic way to disable private IPs on nodes that have them but shouldn't use them.
Acceptance criteria:
kilo.squat.ai/force-internal-ip=""
on a node disables private networking for the node--private-networking=false
flag disables private networking on a node
- using the
--private-networking=false
flag disables private networking on a node
This might not make sense because Kilo is normally run as a DaemonSet, so using this flag will cause all nodes to run with disabled private networking.
Whereas the annotation is more targeted and it could also achieve the above functionality with this one-liner:
for node in $(kubectl get nodes -o name); do kubectl annotate $node kilo.squat.ai/force-internal-ip="-"; done
- setting
kilo.squat.ai/force-internal-ip=""
on a node disables private networking for the node
This was implemented in #127.
Hi squat!
Is there a way to completely disable the private IP? I have hosts that do not have a private interface. Currently I'm forcing the private IP to a random IP that doesn't exist but it still adds it to the allowed ips list.