Connect k8s cluster with azure api mangement

3/7/2019

I setup a kubernetes cluster on Azure, and I want to host REST Api using Azure API management.

I have create a deployment, service(Type: ClusterIP) in kubernetes, and they both seems to be running fine.

I like to expose REST Api to internet using Azure API management.

My question is: Whats the most cost effective, and safest way to expose the API ?

I have gone through few articles which dictate to create service as internal load-balancer or NodePort but seems like those are not cost effective.

Although I did created the internal load balance which gives me external-ip but APIM can't excess.

All the kubernetes and Azure gurus, please provide 2 cents and help me!

In below picture, RED color arrow is what I am trying to figure out. enter image description here

-- JainAnk
azure
kubernetes

1 Answer

3/7/2019

You will want to setup an Ingress Controller. There is a good blog post here that lays out the same scenario you described and walks you through setting it up.

Our docs on creating an Ingress Controller can be found here.

-- Ken W MSFT
Source: StackOverflow