I am using multiple pods and their services, some of the services are of the type load balancer, which will expose the public IP.
But many of the services are called internally and no need to use public IP instead I can use private IP, what change do I need to make to the load balancer to use private IP.
I assume, the load balancer cost more compared to other types of services in the aks cluster.
Please let me know how to reduce the cost
Declare type:ClusterIP
instead of type:LoadBalancer
under kind:Service
It will generate Private IP for the service, which can be accessed with either IP or name of service.
http://<servicename>.<namespace>.svc.cluster.local:<port number>