<p>When exposing a service in minikube it is possible to see its url via the following:</p>

<pre><code>minikube service [-n NAMESPACE] [--url] NAME
</code></pre>

<p>How do you achieve the same in microk8s?</p>

<p>Thank you</p>

user2324712
<p>Realizing this is an older post, but since I just recently implemented a dev install of MicroK8s, I though perhaps I could provide some of my findings.</p>

<p>Wanting a load balancer, I installed MetalLB, <a href="https://metallb.universe.tf/" rel="nofollow noreferrer">https://metallb.universe.tf/</a>, which provides a baremetal LB for a cluster. While MicroK8s does offer an addon for this, I did a manual installation to help myself gain a better understanding.</p>

<p>I used the Layer 2 Configuration option, <a href="https://metallb.universe.tf/configuration/#layer-2-configuration" rel="nofollow noreferrer">https://metallb.universe.tf/configuration/#layer-2-configuration</a> which provided a very simple way to expose my services via a load balancer.</p>

<p>To use the config, I then added an annotation to the services that utilize it, indicating which address pool, which for my deployment, I simply call microk8s_pool.</p>

<pre><code>metallb.universe.tf/address-pool: microk8s_pool
</code></pre>
