How to make API call (HTTP) from pod in AKS to Container App

WARIT BOONMASIRI 20 Reputation points
2024-07-30T13:40:01.94+00:00

I have AKS and Container App running. There are on the same VNET. I want my Container App only accessible from internal services.

  • I created Container Apps Environments that use the same VNET as AKS.
  • I enabled Ingress and set to limited to Vnet in Container App.
  • I test by create curlimages in AKS and do curl from that pod to the Application Url provided from overview page of Container App. It didn't work. I also test nslookup. It din't work too.

I'd like to know how to achieve this. Thank you.

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,156 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
446 questions
0 comments No comments
{count} votes

Accepted answer
  1. Cary Chai 90 Reputation points Microsoft Employee
    2024-07-30T17:28:35.3733333+00:00

    Hi Warit,

    Thank you for posting your query. Have you also configured the private DNS zone for the virtual network? You'll need to create a private DNS zone through which your internal traffic will go through if you're not using a custom DNS solution, link it with your virtual network, and add your container app's IP as an A record. An example is here: Deploy with an internal Azure Container Apps environment.

    For more information on private DNS zones: What is an Azure Private DNS zone?.

    Thanks,

    Cary


0 additional answers

Sort by: Most 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.