forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kubeadm: use actual addresses/ports for WaitForAllControlPlaneComponents
By default check the KCM and scheduler on 127.0.0.1:<port> as that is the defaall --bind-address kubeamd uses for these components. For kube-apiserver take the value from APIEndpoint.AdvertiseAddress which is dynamically detected from the host. Unless the user has passed explicitly --advertise-address as an extra arg. Read the <port> values for all components from the --secure-port flag value if needed. Otherwise use defaults. Use /livez for apiserver and scheduler. Add TODO for KCM to switch to /livez as well.
- Loading branch information
Showing
2 changed files
with
53 additions
and
21 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