Verifying component health always fails with non-default --apiserver-port #4057
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
System: macOS 10.14.4
minikube version: 1.0.0
Command: minikube start --apiserver-port=6443
When I do this, it always fails in the "Verifying component health" stage. However, kubectl works as expected and the cluster seems to be in good health.
I'm not super familiar with golang, but it appears that the function being called to verify the apiserver's health is here:
minikube/cmd/minikube/cmd/start.go
Line 561 in 58a7045
It's calling a "GetAPIServerStatus" method and passing in only the IP address of the apiserver. The function itself is here:
minikube/pkg/minikube/bootstrapper/kubeadm/kubeadm.go
Line 126 in 89ab0be
And for the port to use, it looks like it may be referencing a constant declared here as 8443:
minikube/pkg/util/constants.go
Line 27 in 8ba53c6
Presumably it should only reference the constant if the user didn't specify the API server port. Although again, my experience with golang is small.
The text was updated successfully, but these errors were encountered: