Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multi-node cluster not working after restarting docker
In a multi-node cluster with single controlplane node, if the controlplane node's IP changes, kube-controller-manager and kube-scheduler would fail to connect kube-apiserver. enable_network_magic in the entrypoint of the node image has taken care of fixing up stale IPs in configuration files. This patch does the same for server address in kubeconfig file. But we update it to loopback address as the server certificate isn't valid for the new IP. Signed-off-by: Quan Tian <[email protected]>
- Loading branch information