-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
access external ip from outside network #5812
Comments
I wonder if you have already seen minikube tunnel ? @BobOntario do you need to access the ip outside the machine that minikube runs on it ? if that is the case you would need to use some sort of port forawrding or ssh forawrding ! |
Tried minikube tunnel, it doesn't resolve my issue. Yes, I need access to IP outside the machine that minikube running on it. One use case is that the other computers or devices can access to the services that provides by minikube . |
I bet you can make that work, that would be something you would need to do on your host machine to port-forwart to outside world. if you actually make it work, this would be a great tutorial for other users to be put on minikube website. |
Here is what I did on my side. I understand your setup is different and my solution may not fit your needs. My setup is Hyper-V on Windows 10 Pro. I hope it gives you some food for thought as a minimum.
I hope it gets you to a working solution for your setup. Definitely there is a lack of support about minikube on Windows. But I am committed to use it since it allows for greater productivity overall. Have a look at this issue if you wonder why I use an internal VM Switch #5072 . |
@brainfull your solution looks interesting. Will try later. You run minikube directly on Windows. My case is that I run minikube on Ubuntu within a VM which is under VMWare Workstation or Virtual box. I start minikube with -- vm-driver=none. This is because my apps can't be deployed in Windows, but Linux only. |
You're right, I use Hyper-V in Windows 10. I use chocolatey to install minikube, kubernetes-cli and docker-cli. All my docker images are 'FROM ubuntu:bionic'. In my case I deploy multiple linux containers with Python, Mono, MongoDB, Redis... I tried to leverage the Minkube VM for some linux shell automation but was very disappointed by the linux version within Minikibe VM, it is very limited, so I ended up running linux shell automation directly in one of my container that has Open-SSH installed. This way I know that I can redo all that in production even if the production cluster is running kubernetes on linux. |
Bangladesh |
I label this as a feteaure request, while meanikube provides minikube tunnel and ips for each service. I dont think it is in the scope for minikube to provide external IPs, that would require you and your internet provider to setup port-forwarding. but I wouldn't oppose any PR or addons that would help with this feature. but I don't think this will be on our road map in the near term. |
I don't understand why minikube doesn't provide this service. It seems essential to me. For example, in my case I have a react native application running on 2 phones connected to the local network. I usually use docker-compose which automatically make my services available to my phones. This is very handy and saves me the headaches of port forwarding (which will very likely be dependent on the host machine). Maybe I'm missing something? |
I tried to use minikube to deploy an IOT application in local to test edge devices. My laptop is windows 10 which use VMWare workstation or Virtual box to host an Ubuntu 18.04. minikube was installed in Ubuntu and start as a bare-Metal. I checked services as below outcomes.
All external IPs are none or pending. How can I enable external IP of some services and my devices can connect to this service? The external IP is my laptop IP or VM up?
I tried few possible ways, never got an external IP for other computer or devices to connect together.
Appreciate very much if you could offer some advices.
The text was updated successfully, but these errors were encountered: