<p>I am having the time out issue while starting up my cluster dashboard with</p>
<pre><code>   microk8s dashboard-proxy
</code></pre>
<p>This issue occurs again and again in my kubernate cluster. I don't really know the cause of it.</p>
<pre><code>   error: timed out waiting for the condition on deployments/kubernetes-dashboard
   Traceback (most recent call last):
   File &quot;/snap/microk8s/1609/scripts/wrappers/dashboard-proxy.py&quot;, line 50, in &lt;module&gt;
    dashboard_proxy()
    File &quot;/snap/microk8s/1609/scripts/wrappers/dashboard-proxy.py&quot;, line 13, in dashboard_proxy
    check_output(command)
    File &quot;/snap/microk8s/1609/usr/lib/python3.5/subprocess.py&quot;, line 626, in check_output
**kwargs).stdout
   File &quot;/snap/microk8s/1609/usr/lib/python3.5/subprocess.py&quot;, line 708, in run
output=stdout, stderr=stderr)
  subprocess.CalledProcessError: Command '['microk8s.kubectl', '-n', 'kube-system', 'wait', '--timeout=240s', 'deployment', 'kubernetes-dashboard', '--for', 'condition=available']' returned  non-zero exit status 1
</code></pre>

onlyme
<p>I am running a kubernate cluster on vagrant machines(Centos) using microk8s. This issue can be cause by many raisons. Bellow is some of them;</p>
<ul>
<li>Leak of memory</li>
</ul>
<p>To fix: you need to increase memory within you vagrant machines settings
<a href="https://i.stack.imgur.com/56Ijw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/56Ijw.png" alt="enter image description here" /></a></p>
<ul>
<li>some thing went wrong during you microk8s installation</li>
</ul>
<p>To fix : remove microk8s and reinstall it. In my case I use snap to install it. This is how I did</p>
<pre><code>   snap remove microk8s --purge
   snap install microk8s --classic --channel=1.18/stable
</code></pre>
<ul>
<li><p>some time you need to kill the process and restart you vagrant machine. In my case I did</p>
<pre><code> lsof -Pi:10443 where 10443 on which my dashboard is running
 kill -9 xxxx where xxxx is the PID retrieved from the previous command
</code></pre>
</li>
</ul>
