<p>Here is my working condition:</p>
<ol>
<li>My laptop @ 192.168.12.85 gw 192.168.1.254</li>
<li>Controll plane : bino-k8-master @ 192.168.1.66 gw 192.168.1.247</li>
<li>worker node : bino-k8-wnode1 @ 192.168.1.67 gw 192.168.1.247</li>
</ol>
<p>k8s cluster is build per <a href="https://www.hostafrica.ng/blog/kubernetes/kubernetes-ubuntu-20-containerd/" rel="nofollow noreferrer">https://www.hostafrica.ng/blog/kubernetes/kubernetes-ubuntu-20-containerd/</a></p>
<p>I build simple flask app image per <a href="https://faun.pub/run-your-flask-app-on-kubernetes-ff03854db842" rel="nofollow noreferrer">https://faun.pub/run-your-flask-app-on-kubernetes-ff03854db842</a></p>
<p>Currently, the app is running:</p>
<pre><code>ubuntu@bino-k8-master:~$ kubectl get pods -o wide
NAME                                    READY   STATUS    RESTARTS   AGE   IP           NODE             NOMINATED NODE   READINESS GATES
flask-k8s-deployment-59bd54648c-jdgxv   1/1     Running   0          16h   10.244.1.8   bino-k8-wnode1   &lt;none&gt;           &lt;none&gt;
</code></pre>
<p>also the service:</p>
<pre><code>ubuntu@bino-k8-master:~$ kubectl get services -o wide
NAME                TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE   SELECTOR
flask-k8s-service   LoadBalancer   10.96.179.198   &lt;pending&gt;     6000:30787/TCP   17h   app=flask-k8s
kubernetes          ClusterIP      10.96.0.1       &lt;none&gt;        443/TCP          18h   &lt;none&gt;
</code></pre>
<p>But I can not access the app or service from control plane ...
curl <a href="http://10.244.1.8:5000" rel="nofollow noreferrer">http://10.244.1.8:5000</a> and <a href="http://10.96.179.198:6000" rel="nofollow noreferrer">http://10.96.179.198:6000</a>  both failed (no message, just stuck)</p>
<p>But both curl will work if I did it from the worker node.</p>
<p>Kindly please tell me what to do to make the app or service can be acessed from my laptop (192.168.1.85)</p>
<p>Sincerely</p>
<p>Bino</p>

Bino Oetomo
<p>If you want to access it from a laptop you need to get the extenal-ip of the load balancer. It is not on screenshot yet. If you want just to test it, you can port forward with correct ports.</p>
<pre><code>kubectl port-forward flask-k8s-deployment-59bd54648c-jdgxv 3000:3000
</code></pre>
<p>and then just call</p>
<pre><code>http://localhost:3000
</code></pre>
<p>If you want to access it from internet, create <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/ingress/</a></p>
