<p>I installed Microk8s on a local physical Ubuntu 20-04 server (without a GUI):</p>
<pre><code> microk8s status --wait-ready
microk8s is running
high-availability: no
  datastore master nodes: 127.0.0.1:19001
  datastore standby nodes: none
addons:
  enabled:
    ha-cluster           # Configure high availability on the current node
    helm                 # Helm 2 - the package manager for Kubernetes
  disabled:
</code></pre>
<p>When I try to install something with helm it says:</p>
<pre><code>Error: INSTALLATION FAILED: Kubernetes cluster unreachable: Get &quot;http://localhost:8080/version&quot;: dial tcp 127.0.0.1:8080: connect: connection refused
</code></pre>
<p>What configuration has to be done to use the MicroK8s Kubernetes cluster for helm installations?
Do I have to enable more MicroK8s services for that?
Can I run a Kubernetes cluster on one or two single local physical Ubuntu server with MicroK8s?</p>

SQL-Neuling
<p>Searching for solution for your issue, I have found <a href="https://stackoverflow.com/questions/45914420/why-tiller-connect-to-localhost-8080-for-kubernetes-api/59547001#59547001">this one</a>. Try to run:</p>
<pre class="lang-yaml prettyprint-override"><code>[microk8s] kubectl config view --raw &gt; ~/.kube/config
</code></pre>
<hr />
<p>Helm interacts directly with the Kubernetes API server so it needs to be able to connect to a Kubernetes cluster. Helms reads the same configuration files used by <code>kubectl</code> to do it automatically.</p>
<p>Based on <em>Learning Helm</em> by O'Reilly Media:</p>
<blockquote>
<p>Helm will try to find this information by reading the environment variable $KUBECONFIG. If that is not set, it will look in the same default locations that <code>kubectl</code> looks in.</p>
</blockquote>
<hr />
<p>See also:</p>
<ul>
<li><a href="https://github.com/helm/helm/issues/3460" rel="nofollow noreferrer">This discussion about similar issue on Github</a></li>
<li><a href="https://stackoverflow.com/questions/63066604/error-kubernetes-cluster-unreachable-get-http-localhost8080-versiontimeou">This similar issue</a></li>
</ul>
