-
Notifications
You must be signed in to change notification settings - Fork 55
Adding a node with previous Weave Net setup can cause failures #285
Comments
Read weaveworks/weave#2911 and saw the |
Note that In other words, we should create something similar to |
Got it. Thank you, Bryan. Reading the
|
What are you expecting to see here? I'm guessing it's a new Kubernetes specific command like, |
I'll call this command tentatively |
How to validate if this command is going to work correctly? |
Note the addon is installed once for the cluster, whereas we want to do this 'reset' action for every node, even if the cluster has been running for a month.
Yes, exactly, any 'weave container' would be managed by Kubernetes.
I think one of these is ancient.
And other devices -
I guess if the code is there already. They should disappear when the owning containers disappear. I would probably also expect it to delete the CNI config and binaries. Maybe remove iptables rules? |
Roughly, I'm finding that the following codes might work:
This new The current problem is that I need to obtain the CIDR used by the current installation. Not sure what's the best way to obtain that CIDR - without calling |
The above codes still need tweaking as I still don't totally understand all variables there. Some might be specific to Docker, for example ${CONTAINER_NAME}. |
Weave Net uses a Linux bridge device, which will get an IP address assigned from the pod IP range.
If you do something like remove a node from one cluster and add it to another, the bridge may retain an IP address, and that address could now duplicate the IP of a pod or another bridge.
This will cause weird failures as arp resolves the IP to one or other device arbitrarily.
Maybe we could have a command to clear down Weave Net on the node at install time, a bit like
kubeadm reset
?See also weaveworks/weave#2911
The text was updated successfully, but these errors were encountered: