how to integrate aks hosted web api with azure api management

Mohammad Ajmal Yazdani 391 Reputation points
2022-10-10T11:10:48.027+00:00

Hello,

I would like to deploy both AKS and Azure API Management both service within the VNET and wanted to integrate the service hosted in AKS with the API management. Any code example article, how to do it? I don't want any king of ingress as well

248968-image.png

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,166 questions
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.
2,141 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Cogan 10,747 Reputation points MVP
    2022-10-26T08:35:08.447+00:00

    API Management does not integrate with AKS directly, so in this scenario you would need to have either an ingress controller, or to expose your service on a node port on a load balancer or similar. You can do this on a private IP so it is not exposed directly to the internet.
    For API Management to then access this service you would to use the Premium SKU and join it to the vNet, this would then allow APIM to access the private service in AKS and expose it to the outside world.

    An alternative would be to use Azure Application Gateway, if you don't need all the features of APIM. App Gateway can act as a Kubernetes Ingress Controller, see here and is also joined to the vNet.

    1 person found this answer helpful.

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.