How to install AKS with internal ingress controller and API Management – Part II

 


In part-I, we created AKS with terraform and now we are going to access our kubernetes cluster.

Login to your Azure Portal, navigate to the kubernetes service page and click on connect.

Run the following commands on your local system

If you get the output as above, we are so far good at this point. Lets try to deploy a nodejs app.
First, clone the git url which has all the required k8s files to deploy an app.

https://github.com/shaktiug/shark-app.git

now cd to shark-app directory. There you will find a directory named “k8s” in which all the yamls are present.

Verify it by checking the deployment and service using the following commands. If you get the pods in a running state and service with the external ip. Then you are good to go, lets verify this.

Perfect, now lets copy the external ip of the shark-service and test it on browser.

The application is up and running on the load-balancer ip. This is a simple app with no backend and apis configured however you can develop it a bit such that an api responds and give data to the frontend to test the functionality of APIM in kubernetes cluster which we are going to deploy next in external vnet. Run the below command to create Api Management instance by az cli:

az apim create –name dcapimne –resource-group rg1 –publisher-name devopscheetah –publisher-email devopscheetah@foobar.com –sku-name Developer –location “North Europe” –virtual-network External –no-wait

You can check out the status of the ApiManagement by the following command:

It will take around 30-45 minutes for an ApiManagement instance to be created.

Our ApiManagement instance is ready at the moment in external vnet. In the next part, we will deploy nginx ingress controller. Stay tuned.

If you havent checked out Part-I yet, please check that out :

How to install AKS with internal ingress controller and API Management by using Terraform – Part I

1 thought on “How to install AKS with internal ingress controller and API Management – Part II”

  1. As I web-site possessor I believe the content matter here is rattling fantastic , appreciate it for your hard work. You should keep it up forever! Best of luck.

Leave a Reply

Your email address will not be published. Required fields are marked *