'How to connect to a minikube cluster created in a linux VM from windows 10 local computer?

I have created a following minikube cluster in linux machine . Now I wanted to connect to the node of the cluster from my local windows 10 machine. I have kubectl installed in the local machine. How do I connect the worker node of a minikube cluster from my windows machine? I am new to the Kubes , please let me know if any details needs to added to the question.

NAME           STATUS   ROLES                  AGE   VERSION
minikube       Ready    control-plane,master   52d   v1.22.3
minikube-m02   Ready    worker                 49m   v1.22.3
minikube-m03   Ready    worker                 43m   v1.22.3


Solution 1:[1]

Deploying a Nginx reverse proxy in front of a minikube can make us interact from local machines to the Virtual machine where the minikube is installed.

You can’t access minikube remotely because it’s only accessible locally. For this reason, you need to deploy an Nginx reverse proxy next to minikube that will allow receiving requests from remote clients then forward them to kube-apiserver. Kubernetes API server is a point where all your requests will go when you use the command-line tool kubectl. The kubectl allows you to run commands against Kubernetes clusters.

Refer this document for the detailed procedure of installing Nginx reverse proxy in front of a minikube.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Goli Nikitha