How to target nodes (Nodepool) for the internal loadbalancer

Porsche Me 131 Reputation points
2021-04-02T15:54:48.373+00:00

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 Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,877 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
404 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,141 Reputation points Microsoft Employee
    2021-04-06T00:47:43.923+00:00

    Hello @Porsche Me ,
    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.

    0 comments No comments