title: access k8s service hosted by minikube from another machine
body: <p>I am following the instructions (<a href="https://www.eclipse.org/che/docs/che-7/installation-guide/installing-che-on-minikube/" rel="nofollow noreferrer">https://www.eclipse.org/che/docs/che-7/installation-guide/installing-che-on-minikube/</a>) to install Eclipse:Che from Minikube hosted on a remote ubuntu VM box;</p>
  <p>I got the installation done successfully,</p>
  <p>[![enter image description here][1]][1]</p>
  <p>I could access the portal from ubuntu VM console:</p>
  <p>[![enter image description here][2]][2]</p>
  <p>overhere, the 172.17.0.3 is actually the minikube IP;</p>
  <p>How do I enable external access to <a href="https://che-che.172.17.0.3.nip.io/dashboard/" rel="nofollow noreferrer">https://che-che.172.17.0.3.nip.io/dashboard/</a>?</p>
  <p>from my reading and googling, it seems like SSH forwarding is the right way, but I am struggling to get it correct.</p>
  <p>thanks!</p>
  <p>====== update 2020.11.27 =====</p>
  <pre><code>$ minikube start --addons=ingress  --memory=8192
  $ chectl server:deploy --platform minikube --installer helm
  $ kubectl expose deployment che --type=NodePort -n che --port 8080
  
  $ kubectl get svc -n che
  NAME               TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)             AGE
  che                NodePort    10.109.226.80    &lt;none&gt;        8080:32540/TCP      16h
  che-dashboard      ClusterIP   10.105.102.187   &lt;none&gt;        8080/TCP            17h
  che-host           ClusterIP   10.106.2.155     &lt;none&gt;        8080/TCP,8087/TCP   17h
  devfile-registry   ClusterIP   10.103.124.53    &lt;none&gt;        8080/TCP            17h
  plugin-registry    ClusterIP   10.97.131.33     &lt;none&gt;        8080/TCP            17h
  
  $ minikube service  -n che che
  |-----------|------|-------------|-------------------------|
  | NAMESPACE | NAME | TARGET PORT |           URL           |
  |-----------|------|-------------|-------------------------|
  | che       | che  |        8080 | http://172.17.0.4:32540 |
  |-----------|------|-------------|-------------------------|
    Opening service che/che in default browser...
    http://172.17.0.4:32540
  
  chaoshi@prd-sal-demo01:~$ kubectl port-forward -n che svc/che 9911:8080
  Forwarding from 127.0.0.1:9911 -&gt; 8080
  Forwarding from [::1]:9911 -&gt; 8080
  Handling connection for 9911
  Handling connection for 9911
  Handling connection for 9911
  Handling connection for 9911
  Handling connection for 9911
  
  $ curl http://localhost:9911
  [![CircleCI](https://circleci.com/gh/eclipse/che-plugin-registry.svg?style=svg)](https://circleci.com/gh/eclipse/che-plugin-registry)
  [![Master Build Status](https://ci.centos.org/buildStatus/icon?subject=master&amp;job=devtools-che-plugin-registry-build-master/)](https://ci.centos.org/job/devtools-che-plugin-registry-build-master/)
  [![Nightly Build Status](https://ci.centos.org/buildStatus/icon?subject=nightly&amp;job=devtools-che-plugin-registry-nightly/)](https://ci.centos.org/job/devtools-che-plugin-registry-nightly/)
  [![Release Build Status](https://ci.centos.org/buildStatus/icon?subject=release&amp;job=devtools-che-plugin-registry-release/)](https://ci.centos.org/job/devtools-che-plugin-registry-release/)
  [![Release Preview Build Status](https://ci.centos.org/buildStatus/icon?subject=release-preview&amp;job=devtools-che-plugin-registry-release-preview/)](https://ci.centos.org/job/devtools-che-plugin-registry-release-preview/)
  
  
    [1]: https://i.stack.imgur.com/sVZVz.png
    [2]: https://i.stack.imgur.com/JsOOW.png
    [3]: https://i.stack.imgur.com/maoWv.png
  </code></pre>