question

PorscheMe-6235 avatar image
0 Votes"
PorscheMe-6235 asked PorscheMe-6235 action

How to target nodes (Nodepool) for the internal loadbalancer

Kubernetes version: 1.19.7

We have multiple node pools.
How do we target nodes (Nodepool to be precise) for the internal loadbalancer?
I guess, I'm asking whether AKS has AWS equivalent of 'service.beta.kubernetes.io/aws-load-balancer-target-node-labels'.


We are setting bellow annotations when creating internal load balancer.
annotations: {
"service.beta.kubernetes.io/azure-load-balancer-internal": "true",
"service.beta.kubernetes.io/azure-load-balancer-internal-subnet": "mysubnet"
}

azure-kubernetes-serviceazure-load-balancer
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

shivapatpi-MSFT avatar image
0 Votes"
shivapatpi-MSFT answered

Hello @PorscheMe-6235 ,
Thanks for your query , Sorry for delayed response.
Can you try out couple of options mentioned in the below document

Annotations:
service.beta.kubernetes.io/azure-load-balancer-mode ( specifically set to a subnet)
service.beta.kubernetes.io/azure-load-balancer-internal-subnet (Point to a specific , AVSET node pool)

Example Usage:-

Regards,
Shiva.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.