How to properly egress a services to a specific static IP address in Azure Kubernetes Service?

12/6/2019

I have deployed a service with type ClusterIP in AKS. This service MUST NOT be available from outside, but it MUST communicate with external APIs through specific static public IP-address, because the IP-address was whitelisted.

How to egress only this specific service but not the whole AKS cluster? Also, if I deploy a new service, can I egress it through another static public IP-address? Any help or suggestions would be much appreciated.

-- Vladislav Dracula
azure-aks
kubernetes
kubernetes-ingress

1 Answer

12/6/2019

No, this is not possible. you can only "give" a static IP address to a node(s) on the cluster. not to a service.

https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-outbound-connections#scenarios

-- 4c74356b41
Source: StackOverflow