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
Auto-configure Magic IP 10.0.2.2 to talk to host OS #351
Comments
Hi @edsiper I am sorry this happened during a presentation. Having a way for pods to access the host would be a nice feature, and it should be easy to implement. From a quick search it seems Thank you |
thanks for the quick update. Yep, I think a lo: interface would work, the 'host-access' option looks good too, likely needs to be something different than 10.0.2.2, wondering if upon start and using host-access in Kubernetes can bet set a specific environment variable like MICROK8S_HOST representing the target IP, on that way configmaps only needs to point the variable and not the IP. |
I support this. having access to hostOS services easily is productivity boon! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
…m pods. Related with canonical#351
Closed via #1109 |
Considering Microk8s a solution to run locally, it lacks a very useful feature to allow Pods connect to Host services smoothly: Magic IP 10.0.2.2 (like minikube).
I was presenting at Scale17x and my Pod Configmap connected to wlan0 interface to connect my local Elasticsearch service, for some reason my IP address changed and could not reach Elasticsearch anymore, this could be solved if 10.0.2.2 existed and always routed to the host OS.
The text was updated successfully, but these errors were encountered: