<p>I have an EC2 instance say its IP is 44.XX.XX.XX (Say IP1), I have an minikube which is running inside this EC2 instance say its  IP is 10.XX.XX.XX (Say IP2) , which I came to know by doing minikube ip inside EC2 instance . I have an Frontend application running inside minikube at NodePort say 30010 . I am able to curl to application by doing
curl <a href="http://IP2:30010" rel="nofollow noreferrer">http://IP2:30010</a> </p>

<p>But I want to access this application out side ec2 through any other PC . How to do this , I tried doing <a href="http://IP1:30010" rel="nofollow noreferrer">http://IP1:30010</a> but it didnit work</p>

Anurag Gupta
<p>I'm assuming this is only for development purpose? You need to port forward the traffic from your EC2 node to minikube as minikube runs as separate VM.</p>

<p>Once you have kubectl setup on the IP2 host machine talking to the minikube cluster, you can use <a href="https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/" rel="nofollow noreferrer">kubectl port-forward</a> to forward traffic to any service/pod running inside minikube.</p>

<p><code>kubectl port-forward --address 0.0.0.0 svc/&lt;svc-name&gt; &lt;host-port&gt;:&lt;service-port&gt;</code></p>

<p>You should be able to access your app at <code>IP2:&lt;host-port&gt;</code> as long as the port-forwarding is set up. </p>

<p>(Replace stuff within <code>&lt; &gt;</code> brackets with appropriate values)</p>
