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

IP to connect to the host machine #196

Closed
the-jackalope opened this issue Sep 1, 2017 · 5 comments
Closed

IP to connect to the host machine #196

the-jackalope opened this issue Sep 1, 2017 · 5 comments

Comments

@the-jackalope
Copy link

Hi!

I'm using xhyve as my Minikube VM driver. I'm aware that when using Virtualbox as the VM driver for Minikube, the IP address 10.0.2.2 is a shorthand for connecting back to the host, but this doesn't seem to be hold when using xhyve.

Is there an IP that exposes the host machine when using xhyve? I'd like to be able to dynamically expose applications running on my host machine's localhost to applications running on my cluster and using ifconfig to get the address each time doesn't seem super sustainable 🙂

@Lookyan
Copy link

Lookyan commented Sep 10, 2017

Have you found any working solution?

@r2d4
Copy link
Contributor

r2d4 commented Sep 10, 2017

It looks like you can use 192.168.64.1 for xhyve.

See https://github.com/kubernetes/minikube/blob/master/pkg/minikube/cluster/cluster.go#L287-L318 for more info.

@Lookyan
Copy link

Lookyan commented Sep 11, 2017

@r2d4 Thank you for response.
But it doesn't work for me. I want to have an access to 2049 port on Mac for NFS, may be I should forward this port using some rules?

@Lookyan
Copy link

Lookyan commented Sep 11, 2017

Oh, sorry. It works. It was my mistake. I tried connecting to this port using telnet, but it didn't work. But with kubernetes persistent volume of type NFS it works perfectly well.
Thank you!

@the-jackalope
Copy link
Author

Thanks @r2d4 ! Works for me too

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

No branches or pull requests

3 participants