I have an Azure WebApp with its VNet and a Kubernetes Cluster with its VNet.
In the Kubernetes Cluster VNet I have three subnets:
I also have integrated WebApp VNet with Kubernetes VNet
Using the webapp I can contact with POD IPs of the cluster but I cannot contact with Service IPs or Service private FQDN of the cluster.
I also noticed that address space and subnet for services isn't created by default with the cluster creation.
Any ideas why and how I can fix this?
The solution on this is to use Service Type of Load Balancer but with the annotation of "internal-load-balancer"
metadata:
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: true
This is going to provision an internal load-balancer with IP inside the POD's subnets (and will be assigned to service external ip) which will be later accessibly from the two other subnets.