How do I set up an Application Gateway with AKS and an internal load balancer?

0
4
Asked By CloudySkies42 On

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

Answered By AzureEnthusiast On

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!

Answered By TechGuru88 On

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.

Answered By DevOpsNinja123 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.