Implement NetCore Web API running on Azure Kubernetes Cluster (Part 1)



 Previously. I'm published 3 Articles about performance testing on Azure computing including

VMs, APP-Service, Container Insanctse by using Dotnet core application web API: Link


This article will apply the same Netcore Application for testing how the computing can handle large requests from clients and process to Azure SQL 

    There is 2 part for this testing

        Part 1. provision Azure Kubernetes Service

        Part 2. Execute testing


1. Once you have successfully build your application using NetCore Then you upload it to Azure Container Registry. I have already created an article for upload Netcore Application to Azure container follow the:Link  

2. On (Azure)Azure Container Registries  enable Admin user and copy login server for next step


.3 Preparing Image name by using ACR parameter as follow Login Server +"/" + Repositories + ":" + Tags


4. Create Azure Kubernetes Service




more than ACI container instances the AKS ability can support Availability Zone and Scalable


In this article, I will create 2 scenario

    - Manual Scale Sigle Node

   -  Auto Scale 1 - 2 Node 



5. On the AKS  integration tab refer to  target ACR using for Pull image


6 AKS has been created then copy connection string for next step



7. Prepare YAML file using VS Code

you can follow the step by this Julio Casal'syoutupe : Link


Replace image name from your ACR on this session



8. In VS code terminal /Run command to access AKS that you get from step 6
** Note you can also prepare YAML and execute from Azure could shell


apply YAML to AKS with command   Kubectl apply -f.\yourfile.yaml


go back to check on AKS workloads: you will see your container application has been deployed


Load balancer service has been deployed





9. HTTP request method POST from Postman. Status 200 applications are working properly on the Kubernetes cluster. We are good to go testing.




Part 2 Execute Testing: Comming soon