<p>i am deploying the hello-world docker container to a k3d - cluster.
To get the external IP, a service of the type - load balancer is deployed.</p>
<p>After that i was hoping to call the appication via load balancer. But i don't get the external ip.</p>
<pre><code>k3d create --name=&quot;mydemocluster&quot; --workers=&quot;2&quot; --publish=&quot;80:80&quot;

export KUBECONFIG=&quot;$(k3d get-kubeconfig --name='mydemocluster')&quot;

kubectl run kubia --image=hello-world --port=8080 --generator=run/v1
kubectl expose rc kubia --type=LoadBalancer --name kubia-http

export KUBECONFIG=&quot;$(k3d get-kubeconfig --name='mydemocluster')&quot;
</code></pre>
<p>then <code> kubectl get services</code>:
<a href="https://i.stack.imgur.com/X6xNc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/X6xNc.png" alt="3d" /></a></p>

<p><code>LoadBalancer</code> type service will get external IP only if you use a managed kubernetes Service provided by cloud providers such as AWS EKS, Azure AKS, Google GCP etc.Tools such as k3d is for local development and if you create a <code>LoadBalancer</code> type service external ip will be pending. Alternative is to use NodePort type service or ingress . Here is the <a href="https://k3d.io/usage/guides/exposing_services/" rel="noreferrer">doc</a> on this.</p>
<p>Also you can use <code>kubectl port forward</code> or <code>kubectl proxy</code> to access the pod.</p>
