I'm trying to configure an Application Gateway to work with Azure Kubernetes Service (AKS) while using an internal load balancer to handle ingress traffic. I've set up a virtual network with two subnets: one designated for the AKS cluster and the other for the Application Gateway. However, I'm encountering an error when syncing the load balancer. The error message states: "Error syncing load balancer: failed to ensure load balancer..." Can anyone help me identify what I'm doing wrong? Here are some of my Terraform variables and configurations for reference, including the relevant CIDR settings and AKS cluster setup. I really want to get my cluster up and running to experiment with migrating to Traefik. Any guidance would be appreciated!
3 Answers
Avoid AGIC; instead, try using the Application Gateway directly for ingress management. AGIC can sometimes run into issues when load balancing containers, especially if they scale down. For more insights, check out the documentation on the official Microsoft site. It could save you some headaches!
If you're planning on using an Application Gateway as your ingress controller, I recommend checking out the Application Gateway Ingress Controller (AGIC). There's a Terraform parameter that allows you to deploy a managed instance of it for your AKS resource. Once set up, you just need the right annotations in your ingress YAML, and the controller will handle the configuration for you.
You might also want to consider the Application Gateway for Containers. It's the successor to AGIC and offers better scaling and resilience. It could be beneficial, especially if you need a private frontend. If you're not ready to switch, AGIC can still be used for now. Just keep an eye on the migration details for the future!

Related Questions
How to Build a Custom GPT Journalist That Posts Directly to WordPress
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads