<p><strong>I am new on K8s "Need Help"</strong></p>

<p>I have created an HA Cluster of Kubernetes in AWS with Private DNS.</p>

<p>I used ´type: LoadBalancer´ and getting an External IP through with I am accessing my service in the browser but the problem is External Ip is PUBLIC and anyone can easily able to access which I don't want.</p>

<p>I used NODEPORT and Got EndPoints But can't able to access on the browser.</p>

<p>Now Question is.-</p>

<p><strong>How to spin up private containers services in k8s AWS which are private and I can only access?</strong> </p>

Ankit Singh
<p>If you're using AWS load balancers in services you can specify that you want internal load balancer only:</p>

<pre><code>metadata:
    name: my-service
    annotations:
        service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
</code></pre>

<p>You can read more about this here:
<a href="https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer</a></p>
