<p>I'm new to gke/gcp and this is my first project. 
I'm setting up istio using <a href="https://istio.io/docs/setup/kubernetes/quick-start-gke-dm/" rel="nofollow noreferrer">https://istio.io/docs/setup/kubernetes/quick-start-gke-dm/</a> tutorial.</p>

<p>I've exposed grafana as shown in the post using:<br>
<code>kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=grafana -o jsonpath='{.items[0].metadata.name}') 3000:3000 &amp;
</code></p>

<p>curl <a href="http://localhost:3000/dashboard/db/istio-dashboard" rel="nofollow noreferrer">http://localhost:3000/dashboard/db/istio-dashboard</a>
gives me http page on terminal, to access it from the browser I'm using master ip I get after executing <code>kubectl cluster-info</code>.</p>

<p>http://{master-ip}:3000/dashboard/db/istio-dashboard is not accessible. </p>

<p>How do I access services using port-forward on gke?</p>

<p>First grab the name of the Pod</p>

<pre><code>$ kubectl get pod
</code></pre>

<p>and then use the port-forward command. </p>

<pre><code>$ kubectl port-forward &lt;pod-name&gt; 3000:3000
</code></pre>

<p>It worked for me, I've found it from this <a href="https://medium.com/google-cloud/kubernetes-120-networking-basics-3b903f13093a" rel="nofollow noreferrer">nice</a> website also explained on detail how to do it. Hope it can be useful.  </p>
