AKS CNI OVERLAY CANNOT CREATE INGRESS WITH INTERNAL IP

Angelos Papadopoulos 0 Reputation points
2023-06-12T12:45:22.51+00:00

Hello,

I create an azure kubenetes service with cni overlay and i configure the nginx with the below specs:

helm install ingress-nginx ingress-nginx/ingress-nginx \
                          --namespace ingress-basic \
                          --set controller.replicaCount=2 \
                           --set controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-internal"=true \
                          --set controller.service.loadBalancerIP=10.1.208.59 \
                          --set controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-health-probe-request-path"=/healthz 

Even i try to set a specific ip for the loadbalacer the loadbacer always created with public ip.

Is there any restriction with kubernets cni overlay and nginx?only public ip can used?

thanks in advance,

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,456 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Akram Kathimi 1,281 Reputation points Microsoft Employee
    2023-06-12T13:18:59.9866667+00:00

    Hi @Angelos Papadopoulos ,

    Thank you for your question.

    Please note that the network overlay type does not affect Nginx/Load Balancer IP services.

    The command you have shared works as expected, it is setting the needed annotation in the LB service to an internal IP.

    Can you please share screenshots of the service being created. Mainly the output of kubectl describe svc ingress-nginx-controller -n ingress-basic

    Please make sure to use an IP from the AKS subnet range if you want to set the private IP manually.

    Thank you.

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.