Author : MD TAREQ HASSAN | Updated : 2021/05/05

What Is Application Gateway Ingress Controller?

How Does AGIC Work?

AGIC Add-on with Existing Application Gateway

Points to be noted When AGIC addon is enabled with existing Application Gateway

Enabling AGIC Add-on

Prerequisites

Enable AGIC in Azure portal (AKS Add-on)

Enable AGIC in Azure portal (AKS Add-on)

Creating A Basic Ingress

See:

Using custom domain

Ingress For Multiple APIs

Create 2 API Projects: API.Foo and API.Bar

‘API.Foo’ project (Foo microservice): Controllers/FooController.cs

using Microsoft.AspNetCore.Mvc;

namespace API.Foo.Controllers
{
    [ApiController]
    [Route("api/foo")]
    public class FooController : ControllerBase
    {
        [HttpGet("")]
        public string Index()
        {
            return "FooController.Index()";
        }

        [HttpGet("test")]
        public string Test()
        {
            return "FooController.Test()";
        }

        [HttpGet("bax")]
        public string Bax()
        {
            return "FooController.Bax()";
        }
    }
}

‘API.Bar’ project (Bar microservice): Controllers/BarController.cs

using Microsoft.AspNetCore.Mvc;

namespace API.Bar.Controllers
{
    [ApiController]
    [Route("api/bar")]
    public class BarController : ControllerBase
    {
        [HttpGet("")]
        public string Index()
        {
            return "BarController.Index()";
        }

        [HttpGet("test")]
        public string Test()
        {
            return "BarController.Test()";
        }

        [HttpGet("bax")]
        public string Bax()
        {
            return "BarController.Bax()";
        }
    }
}

Publish API Projects To ACR

Create Ingresses

Deploy and Test