<p>I am trying to start kubernetes dashboard in docker for desktop and it's working fine. but all time i need to start <code>kubectl proxy</code> and if i close that powershell window then dashboard working stop.</p>

<p>Is there any way to start dashboard without proxy or proxy start all time? how i can access this dashboard in network ?</p>

Vinit Patel
<p>In order to persistently expose the dashboard you have to add a service to your cluster.</p>

<p>Create a yaml file with the following content (Let's call it <strong>dash-serv.yaml</strong>):</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  labels:
    k8s-app: kubernetes-dashboard
  name: kubernetes-dashboard-nodeport
  namespace: kube-system
spec:
  ports:
  - port: 80
    protocol: TCP
    targetPort: 9090
    nodePort: 32123
  selector:
    k8s-app: kubernetes-dashboard
  sessionAffinity: None
  type: NodePort
</code></pre>

<p>then run <code>kubectl apply -f dash-serv.yaml</code> and test your dashboard access on <a href="http://localhost:32123" rel="nofollow noreferrer">http://localhost:32123</a>.</p>
