-
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
ssh driver --ssh-ip-address seems to be ignored #10578
Comments
Looks like a bug, was there a previous attempt to start without the parameter ? Not sure how much it updates "running" profiles
i.e. you might have to delete the old profile, and create a new one. if it saved the initial attempt as the config, it will continue that. Hopefully the new minikube has better error now... (#10309) |
The old version (1.17.1) was less helpful:
|
You're right - manually deleting "profile" and "machine" in %USERPROFILE%.minikube solved the problem, because I had a typo in my very first try (which failed then of course). So to me it looks like minikube does not update the SSH IP at all. And if there's an unreachable IP recorded, Further testing with manually installed VMs (with changing IPs due to a twitchy DHCP) showed, that minikube will always prefer its recorded IP over the one provided via cmdline, meaning that if your remote VM changed IP during a reboot, you can't reach it any more. |
Unfortunately the current workaround is to edit the profile/machine configuration directly, just like you have discovered. This shortcoming is shared with the VM, that it cannot be modified after creation. I would recommend DNS, for the IP. i.e. add some alias to We can probably improve this... |
@afbjorklund how about add minikube/cmd/minikube/cmd/start_flags.go Lines 433 to 435 in 1fe7615
currently it looks overwrite flags only when first start fail.(but not cover all fail cases) |
Right, that could work. |
/assign |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/triage needs-information |
I tried and the |
Steps to reproduce the issue:
minikube start --driver=ssh --ssh-ip-address=10.0.0.10 --ssh-key='id_rsa' --alsologtostderr
Full output of failed command:
Full output of
minikube start
command used, if not already included:Optional: Full output of
minikube logs
command:notice that config mentions "SSHIPAddress:" being empty, although the command line specifies --ssh-ip-address=10.0.0.10. AFAICS it doesn't even try to connect.
Removing the --ssh-key doesn't make a difference.
The text was updated successfully, but these errors were encountered: