Skip to content
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

Using Multi-Control Plane - HA Clusters #19113

Closed
ren-142326 opened this issue Jun 21, 2024 · 4 comments · Fixed by #19722
Closed

Using Multi-Control Plane - HA Clusters #19113

ren-142326 opened this issue Jun 21, 2024 · 4 comments · Fixed by #19722

Comments

@ren-142326
Copy link

minikube ssh -p ha-demo -- 'sudo /var/lib/minikube/binaries/v1.28.4/kubectl --kubeconfig=/var/lib/minikube/kubeconfig logs -n kube-system pod/kube-vip-ha-demo'

[sudo] password for docker:

where password?

@victorguidi
Copy link

As far as I can understand, I believe you are calling a ssh command and passing a shell command to be executed once it sshs in the machine. That command is using sudo, which is the "admin" password to use commands that do not belong to the current user.
Try using it the sudo password that is configured on the machine you ssh into, that it should work.

@ren-142326
Copy link
Author

As far as I can understand, I believe you are calling a ssh command and passing a shell command to be executed once it sshs in the machine. That command is using sudo, which is the "admin" password to use commands that do not belong to the current user. Try using it the sudo password that is configured on the machine you ssh into, that it should work.

I use wsl, I tried to use the root account password I set up, it doesn't work,

@victorguidi
Copy link

I see it, but what I meant was to to use the sudo password configured where the HA Cluster was configured, the ha-demo server I believe, have you tried this one too?

If this dont work, would be great if you provide some more info and logs of the steps you are executing

@prezha
Copy link
Contributor

prezha commented Sep 28, 2024

hi @ren-142326 instead of v1.28.4 from the example, please use the kubernetes version that you installed your cluster with - you can find out Version from the profile command - eg:

minikube profile list

|---------|-----------|------------|----------------|------|---------|---------|-------|----------------|--------------------|
| Profile | VM Driver |  Runtime   |       IP       | Port | Version | Status  | Nodes | Active Profile | Active Kubecontext |
|---------|-----------|------------|----------------|------|---------|---------|-------|----------------|--------------------|
| ha-demo | docker    | containerd | 192.168.49.254 | 8443 | v1.31.1 | OKHAppy |     3 |                | *                  |
|---------|-----------|------------|----------------|------|---------|---------|-------|----------------|--------------------|

btw, pr #19722 aims to improve the docs and use the appropriate kubernetes version automatically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants