-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
controlPlaneEndpoint=localhost breaks clusterapi-apiserver: webhook.go connection refused #3076
Comments
Hey @joejulian - I'd like to help push this forward. I don't yet know the motivation behind the original change to set I also don't know much about the cluster-api or how to get it up and running. I tried the repro instructions: % curl -L https://git.io/clusterapi | kubectl apply -f -
statefulset.apps/etcd-clusterapi unchanged
deployment.extensions/clusterapi-apiserver unchanged But ended with a pod stuck in ContainerCreating. Is this a symptom of what you are seeing? If so, how do I see the log with the errors you mentioned? NAMESPACE NAME READY STATUS RESTARTS AGE
default clusterapi-apiserver-7787d8f7cf-5lmvk 0/1 MatchNodeSelector 0 12m
default clusterapi-apiserver-7787d8f7cf-f86c7 0/1 ContainerCreating 0 10m
|
Yes, it is. Look at https://github.com/samsung-cnct/cluster-api-provider-ssh which is the implementation I was using and has clear instructions. The pods will start, but when you look at the logs, they will fail to connect to the api server because they're trying to connect to localhost:6443 which, of course, is not going to connect from inside a pod. |
Reading back, I see I had it fail with the vanilla cluster-api. It's been a while and I'd forgotten. Looks like it wants a secret volume that it didn't need back when I wrote that. |
Hey Joe - is this still an issue? If so, can you help with the reproduction instructions? I ran
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I'm closing this issue as it hasn't seen activity in awhile, and it's unclear if this issue still exists. If this issue does continue to exist in the most recent release of minikube, please feel free to re-open it. Thank you for opening the issue! |
/reopen I am facing this issue because of this line i.e setting controlPlaneEndpoint to localhost. I am running like this:
minikube version is 1.1.0 Error which i get is this:
This error is from kubeadm. kubeadm compares server url from the kubeadm.yaml and from the kubeconfig file on the disk. They differ like this:
|
@vikaschoudhary16: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Since I'm no longer at Samsung and cluster-api-provider-ssh is abandoned and all the cluster-api development uses |
As a test, I removed this line:
When I tried to restart an existing v1.16 cluster, kubeadm emitted the error:
On a clean cluster it appears to work fine. I'm OK with removing this line, but some work will have to be done to cleanly handle existing clusters. |
I believe @vikaschoudhary16 your issue has a workaround |
I believe this issue was fixed this PR by #5427 |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Please provide the following details:
Environment: x86_64 linux
Minikube version (use
minikube version
): >= v0.28.1cat ~/.minikube/machines/minikube/config.json | grep DriverName
): kvm2cat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): >= v0.28.1What happened:
cluster-api errors with the following
What you expected to happen:
With 0.28.0 it connected to the apiserver as expected.
How to reproduce it (as minimally and precisely as possible):
Start minikube and install the clusterapi controller:
curl -L https://git.io/clusterapi | kubectl apply -f -
Output of
minikube logs
(if applicable):Anything else do we need to know:
This behavior changed with the merge of this line. Removing the line reverts the behavior and allows the application to function correctly.
https://github.com/kubernetes/minikube/pull/2943/files#diff-791cd4f1bc5624fa1aec26b76983b601R32
The text was updated successfully, but these errors were encountered: