<p>Trying to run container in <code>microk8s</code>.</p>

<p>According to <a href="https://docs.docker.com/get-started/part3/" rel="nofollow noreferrer">https://docs.docker.com/get-started/part3/</a> , after deploy the service.</p>

<p><code>microk8s.kubectl get services</code> shows:</p>

<pre><code>   NAME               TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)          AGE
   bb-entrypoint      NodePort    10.152.183.182   &lt;none&gt;        8080:30001/TCP   5m51s
   kubernetes         ClusterIP   10.152.183.1     &lt;none&gt;        443/TCP          35d
   microbot-service   NodePort    10.152.183.80    &lt;none&gt;        80:31223/TCP     19
</code></pre>

<p>But, I can't access the <code>bb-entrypoint</code> service via any of following address:</p>

<ul>
<li><code>localhost:30001</code></li>
<li><code>10.152.183.182:8080</code></li>
</ul>

<p>The os is <code>mint mate</code> based on (<code>ubuntu</code>), and I have disabled <code>ufw</code>.</p>

<p>Any idea?</p>

Eric
<p>You have to ensure whether endpoints are created for this service or not by running kubectl get ep
In this case i'm seeing endpoints are not created because the pod was having issues in pulling the image from docker and so it i not in ready status</p>

<pre><code>[root@master tmp]# kubectl get ep
NAME            ENDPOINTS           AGE
bb-entrypoint                       9m24s

[root@master tmp]# kubectl get po
NAME                         READY   STATUS                       RESTARTS   AGE
bb-demo-7ffb568776-q6xs2     0/1     ImagePullBackOff             0          9m55s

Warning  Failed          6h15m (x3 over 6h17m)   kubelet, node1.k8s  Failed to pull image "bulletinboard:1.0": rpc error: code = Unknown desc = repository docker.io/bulletinboard not found: does not exist or no pull access
  Warning  Failed          6h15m (x3 over 6h17m)   kubelet, node1.k8s  Error: ErrImagePull
  Normal   BackOff         6h15m (x7 over 6h17m)   kubelet, node1.k8s  Back-off pulling image "bulletinboard:1.0"
  Normal   Pulling         6h14m (x4 over 6h17m)   kubelet, node1.k8s  Pulling image "bulletinboard:1.0"
  Warning  Failed          6h12m (x15 over 6h17m)  kubelet, node1.k8s  Error: ImagePullBackOff
</code></pre>
