using Kubernetes with network loadbalancer, only need access from the DNS not from the LB IP address/name

10/14/2021

I have deployed application on K8s and created corresponding service with type Load balancer(aws network load balancer) which internet-facing. I have created DNS name and mapped my network load balancer. I could able hit application with DNS, load balancer ip and loadbalancer name. I want to restrict my load balancer from outside world, application should only accessible from dns name.

Please help me with solution to achieve this?

-- Ram
amazon-eks
aws-elb
dns
kubernetes

0 Answers