04/23/2021, 10:27 AM
We have some issues when deploying an API to APIM where we host the application on kubernetes. Our application expose a json that we use to the define the API in APIM. When we do that Azure/APIM makes a request to the swagger endpoint of the app in kubernetes to retrieve the swagger. In a large part of our deployments the request from APIM to the swagger endpoint gets a 503, and this is even if we have liveness and readiness probes in place for the deployment in kubernetes. I can also see in the pulumi logs that the deploy to APIM is waiting unil the deploy to kuberenetes should be done, but it still gets a 503. I'm a little bit unsure how to debug this and what we can do to make the deploy more stable.