-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make antrea-controller not tolerate Node unreachable
When a Node becomes unreachable, currently it takes 5m45s+ for Kubernetes to move antrea-controller Pod to another Node. The time spent in the process includes: * 40s (default value of NodeMonitorGracePeriod) to mark a Node's Ready condition to Unknown * 5s to taint the Node with `node.kubernetes.io/unreachable:NoExecute` * 5m (default value of defaultUnreachableTolerationSeconds) to tolerate the taint The 1st duration is kind of inevitable. The 2nd duration seems a bug in kube-controller-manager, which I have opened an issue kubernetes/kubernetes#120815 and may be fixed in a future release. The 3rd duration is because Kubernetes automatically adds a default toleration for `node.kubernetes.io/unreachable:NoExecute` with tolerationSeconds of 300s if the Pod doesn't have one. This commit adds a toleration for not tolerate Node unreachable explicitly, which reduces the failover time by 5m. Signed-off-by: Quan Tian <qtian@vmware.com>
- Loading branch information
Showing
6 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters