-
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
Using Bridge to K8s to debug minikube on VMWare #10785
Comments
I think the none driver still binds to all interfaces, rather than localhost, so you can (ab)use that... https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/ Otherwise when accessing a kubernetes cluster on a remote host, one normally uses SSH tunnels. https://kubernetes.io/docs/tasks/extend-kubernetes/http-proxy-access-api/ In the future, using the Since it will set up your local kubernetes config, instead of doing it on the control plane. See #4733 (comment) for the reasoning behind the new driver, and how it completes "none". The obvious alternative would otherwise be to run your IDE on the Debian VM with minikube. |
I think this could be a good topic for a tutorial, how to connect to a remote computer running minikube... Like how to do it properly, without opening up unnecessary things on the machine for remote access. The plan was to forward the port over the ssh connection, and then start ssh -L 8001:127.0.0.1:8001 ...
in another terminal, on the host: $ curl http://localhost:8001/api/
{
"kind": "APIVersions",
"versions": [
"v1"
],
"serverAddressByClientCIDRs": [
{
"clientCIDR": "0.0.0.0/0",
"serverAddress": "192.168.99.253:8443"
}
]
$ minikube ip
192.168.99.253 Of course, if anyone has access to localhost that means the whole cluster is compromised as well. |
Actually, connecting to the VM is not a problem. It has NAT and bridged net cards defined. |
minikube is only supposed to be available to the local learning environment, i.e. localhost https://kubernetes.io/docs/setup/learning-environment/ Having it accessible for remote access makes it more like a regular production environment |
The whole point is to simulate an environment, which cannot be done if it refuses to talk to a network outside of the host it's running on. |
Hi all,
I have a
Win10
host system on which I'm running aVMware Workstation
Debian
VM.This VM has
Docker
andMinikube
(started with driver=none) running and all works quite well.My question is. Is it possible to debug an application running on the
Minikube
cluster (on the VM)from the
Visual Studio
onwin10
using the "Bridge to Kubernetes"?Thank you
The text was updated successfully, but these errors were encountered: