{"id":97924,"date":"2024-11-13T16:32:35","date_gmt":"2024-11-13T11:02:35","guid":{"rendered":"https:\/\/www.whizlabs.com\/blog\/?p=97924"},"modified":"2025-03-26T16:28:47","modified_gmt":"2025-03-26T10:58:47","slug":"nginx-deployment-on-azure-kubernetes-service","status":"publish","type":"post","link":"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/","title":{"rendered":"Step-by-Step Nginx Deployment on Azure Kubernetes Service"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Microsoft offers a managed Kubernetes service called <\/span><strong>Azure Kubernetes Service<\/strong><span style=\"font-weight: 400;\"> which reduces the process of deploying, scaling, and managing containerized applications. As containerized workloads become more popular across companies, AKS provides a simple approach for developers and businesses to utilize Kubernetes as its infrastructure is not to be bothered with. Such a situation allows the teams to pay more attention to their applications and less to the management of distributed systems.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This blog is particularly focused on Azure Kubernetes Service, its essential feature and go through the steps to set up an AKS cluster. We will also execute the yaml code for deploying containers inside the cluster and exposing the container via load balancer on the internet. Whether you are new to kubernetes, this guide will help you get started with AKS and simplify your journey into scalable application management.<\/span><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ea7e02;color:#ea7e02\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ea7e02;color:#ea7e02\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Features_of_Azure_Kubernetes_Service_AKS\" >Features of Azure Kubernetes Service (AKS)<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Fully_Managed_Control_Plane\" >Fully Managed Control Plane<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Node_Auto-Scaling\" >Node Auto-Scaling<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Integration_with_DevOps_and_CICD\" >Integration with DevOps and CI\/CD\u00a0\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Identity_and_Access_Management\" >Identity and Access Management\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Network_Security\" >Network Security\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Integrated_Monitoring_and_Insights\" >Integrated Monitoring and Insights<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Flexible_Storage_Options\" >Flexible Storage Options\u00a0\u00a0<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Why_Choose_AKS\" >Why Choose AKS?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Reduced_Operational_Overhead\" >Reduced Operational Overhead<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Cost-Effective\" >Cost-Effective<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Enhanced_Security\" >Enhanced Security\u00a0\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Scalability_and_Flexibility\" >Scalability and Flexibility\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Seamless_Integration_with_the_Azure_platform\" >Seamless Integration with the Azure platform\u00a0\u00a0<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Real_Time_Scenario_Deploying_Azure_Kubernetes_Service_through_Azure_Portal\" >Real Time Scenario: Deploying Azure Kubernetes Service through Azure Portal<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Creation_of_Azure_Kubernetes_Service\" >Creation of Azure Kubernetes Service<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Deploy_a_Container_on_AKS\" >Deploy a Container on AKS<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Create_a_Service_Load_Balancer_for_the_container\" >Create a Service (Load Balancer) for the container<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.whizlabs.com\/blog\/nginx-deployment-on-azure-kubernetes-service\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Features_of_Azure_Kubernetes_Service_AKS\"><\/span><strong><br \/>\nFeatures of Azure Kubernetes Service (AKS)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">AKS provides several features for deploying and managing the containerized applications.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Fully_Managed_Control_Plane\"><\/span><strong>Fully Managed Control Plane<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Azure handles the Kubernetes control plane in AKS clusters, which includes the API server, scheduler, and etcd database. This management means you automatically receive updates, security patches, and control plane monitoring without needing to handle these manually.<br \/>\n<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Node_Auto-Scaling\"><\/span><strong>Node Auto-Scaling<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">AKS includes a cluster autoscaler to automatically add or remove nodes based on workload demand. You can also enable horizontal pod autoscaling to adjust the number of pod replicas based on resource needs like CPU or memory usage.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Integration_with_DevOps_and_CICD\"><\/span><strong>Integration with DevOps and CI\/CD\u00a0\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">AKS continuously connects with Azure DevOps and GitHub Actions, making it easier to set up CI\/CD pipelines for Kubernetes-based applications. This integration enables quick, safe deployments..<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Identity_and_Access_Management\"><\/span><strong>Identity and Access Management\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">With support for Azure Entra ID, AKS allows secure access control through role-based access control (RBAC) and supports single sign-on (SSO) for developers and operators.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Network_Security\"><\/span><strong>Network Security\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">AKS includes Azure <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/aks\/concepts-network\" target=\"_blank\" rel=\"nofollow noopener\"><strong>Virtual Network<\/strong><\/a> (VNet) integration, Network Security Groups (NSGs), and network policies for fine-grained control over networking and security, keeping workloads isolated and secure.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Integrated_Monitoring_and_Insights\"><\/span><strong>Integrated Monitoring and Insights<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/aks\/monitor-aks\" target=\"_blank\" rel=\"nofollow noopener\"><span style=\"font-weight: 400;\"><strong>Azure Monitor for AKS<\/strong><\/span><\/a><span style=\"font-weight: 400;\"> offers logging, real-time monitoring, and analytics into your AKS apps and clusters. You can monitor performance and quickly resolve any problems with this service.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Flexible_Storage_Options\"><\/span><strong>Flexible Storage Options\u00a0\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">AKS supports various storage choices, such as Azure Disks for high-performance needs, Azure Files for shared volumes, and Blob Storage for unstructured data. This flexibility allows your applications to manage stateful workloads smoothly.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Why_Choose_AKS\"><\/span><strong>Why Choose AKS?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">AKS provides a range of benefits, making it a popular choice for deploying Kubernetes clusters on Azure. Here are some reasons why AKS stands out:<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Reduced_Operational_Overhead\"><\/span><strong>Reduced Operational Overhead<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">With AKS, you\u2019re not responsible for managing the control plane or infrastructure. Azure handles these aspects, allowing you to focus on application deployment and scaling.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Cost-Effective\"><\/span><strong>Cost-Effective<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Azure provides the control plane at no additional cost, and you only pay for the worker nodes you utilize. The auto-scaling feature further helps optimize resource usage, keeping costs efficient.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Enhanced_Security\"><\/span><strong>Enhanced Security\u00a0\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Built-in security features, like Azure AD integration, network policies, and integration with Azure Key Vault for secrets management, work together to keep applications and data secure.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Scalability_and_Flexibility\"><\/span><strong>Scalability and Flexibility\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">AKS can handle a variety of applications, from small microservices to large, stateful workloads. The ability to scale clusters and resources on demand makes AKS suitable for businesses of all sizes.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Seamless_Integration_with_the_Azure_platform\"><\/span><strong>Seamless Integration with the Azure platform\u00a0\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Integrating AKS with Azure DevOps, Azure Monitor, and Application Gateway is simple because it is part of the Azure platform. This integration gives you access to the most effective tools available for managing and deploying applications.t.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Real_Time_Scenario_Deploying_Azure_Kubernetes_Service_through_Azure_Portal\"><\/span><b>Real Time Scenario: Deploying Azure Kubernetes Service through Azure Portal<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">For the section of this guide\/ experience you will have to access our <\/span><span style=\"font-weight: 400;\">\u00a0<\/span><span style=\"font-weight: 400;\"><strong>Whizlabs Website<\/strong><\/span><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"> by logging in using our provided credentials (Email ID and Password). Navigate to the Platform panel. Choose Hands-on Labs to access the Hands-on Lab page.<br \/>\n<\/span><\/span><\/span><\/span><br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-97941 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/access-the-hands-on-lab-page.webp\" alt=\"access the hands-on lab page\" width=\"1920\" height=\"1001\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/access-the-hands-on-lab-page.webp 1920w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/access-the-hands-on-lab-page-300x156.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/access-the-hands-on-lab-page-1024x534.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/access-the-hands-on-lab-page-768x400.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/access-the-hands-on-lab-page-1536x801.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/access-the-hands-on-lab-page-150x78.webp 150w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\"><br \/>\n2. Click on Get Started so that you will be redirected to the Hands-on Labs page.<\/span><\/p>\n<p><strong><br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-97945 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/redirected-to-the-hands-on-labs-page.webp\" alt=\"redirected to the hands on labs page\" width=\"1999\" height=\"1142\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/redirected-to-the-hands-on-labs-page.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/redirected-to-the-hands-on-labs-page-300x171.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/redirected-to-the-hands-on-labs-page-1024x585.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/redirected-to-the-hands-on-labs-page-768x439.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/redirected-to-the-hands-on-labs-page-1536x877.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/redirected-to-the-hands-on-labs-page-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>3. <span style=\"font-weight: 400;\">Please search for Azure Kubernetes Service in the search tab. You will find Azure Container labs for hands-on practice. For hands-on practice, we will use the <\/span><b>Understanding Azure Kubernetes Service<\/b><span style=\"font-weight: 400;\"> lab. Click on the <\/span><b>Understanding Azure Kubernetes Service<\/b><span style=\"font-weight: 400;\"> lab.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-97947 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/understanding-azure-kubernetes-service-lab.webp\" alt=\"understanding azure kubernetes service lab\" width=\"1999\" height=\"1146\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/understanding-azure-kubernetes-service-lab.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/understanding-azure-kubernetes-service-lab-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/understanding-azure-kubernetes-service-lab-1024x587.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/understanding-azure-kubernetes-service-lab-768x440.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/understanding-azure-kubernetes-service-lab-1536x881.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/understanding-azure-kubernetes-service-lab-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>4. <span style=\"font-weight: 400;\">Once you click the Start button, you will be redirected to the lab page. Click on \u2018Start Guided Lab\u2019 to begin the lab.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97948\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-guided-lab.webp\" alt=\"start guided lab\" width=\"1999\" height=\"1140\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-guided-lab.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-guided-lab-300x171.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-guided-lab-1024x584.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-guided-lab-768x438.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-guided-lab-1536x876.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-guided-lab-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">5.\u00a0 To start the lab, we must enable the button by participating in Whizlabs Training. Agree to the Whizlabs Term of User and click \u2018Start lab\u2019.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97949\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-lab.webp\" alt=\"start lab\" width=\"1999\" height=\"1144\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-lab.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-lab-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-lab-1024x586.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-lab-768x440.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-lab-1536x879.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/start-lab-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u00a06. The lab will begin with Whizlabs User\u2019s Credentials, including <\/span><b>Username<\/b><span style=\"font-weight: 400;\"> and <\/span><b>password<\/b><span style=\"font-weight: 400;\">. We provide lab steps along with the screenshots to be followed in the Azure Portal. Click on the \u2018Open Console\u2019 Button which will redirect you to the Azure Portal.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97950\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/open-console.webp\" alt=\"open console\" width=\"1999\" height=\"1147\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/open-console.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/open-console-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/open-console-1024x588.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/open-console-768x441.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/open-console-1536x881.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/open-console-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><br \/>\n<span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><br \/>\n7. Please give the Username and Password provided by Whizlabs on the Sign-in Page.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\"> <img decoding=\"async\" class=\"alignnone size-full wp-image-97951\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/sign-in-page.webp\" alt=\"sign in Page\" width=\"1999\" height=\"1113\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/sign-in-page.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/sign-in-page-300x167.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/sign-in-page-1024x570.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/sign-in-page-768x428.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/sign-in-page-1536x855.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/sign-in-page-150x84.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97952\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/enter-password-page.webp\" alt=\"enter password\" width=\"1999\" height=\"1113\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/enter-password-page.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/enter-password-page-300x167.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/enter-password-page-1024x570.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/enter-password-page-768x428.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/enter-password-page-1536x855.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/enter-password-page-150x84.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97953\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/dashboard-portal.webp\" alt=\"dashboard portal\" width=\"1999\" height=\"1144\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/dashboard-portal.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/dashboard-portal-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/dashboard-portal-1024x586.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/dashboard-portal-768x440.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/dashboard-portal-1536x879.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/dashboard-portal-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Creation_of_Azure_Kubernetes_Service\"><\/span><b><br \/>\nCreation of Azure Kubernetes Service<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Once the Azure Portal is opened, We will create the Azure Kubernetes Service through the Azure Portal<\/span><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">. In the Azure Portal search for Azure Kubernetes Service and Click on Azure Kubernetes Service.<\/span><\/span><\/span><\/span><\/span><\/span><img decoding=\"async\" class=\"alignnone size-full wp-image-97954\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/azure-portal-is-open.webp\" alt=\"azure portal open\" width=\"1999\" height=\"1143\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/azure-portal-is-open.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/azure-portal-is-open-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/azure-portal-is-open-1024x586.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/azure-portal-is-open-768x439.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/azure-portal-is-open-1536x878.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/azure-portal-is-open-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>2. Under Kubernetes Services, Click on Kubernetes cluster to start creating the cluster.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97955\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-cluster.webp\" alt=\"kubernetes cluster\" width=\"1999\" height=\"1134\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-cluster.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-cluster-300x170.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-cluster-1024x581.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-cluster-768x436.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-cluster-1536x871.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-cluster-150x85.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p>3. We need to fill in the necessary details in order to proceed with the creation of the cluster.<\/p>\n<p><strong>Project Details:\u00a0<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Resource Group &#8211; Select the Resource Group as per your subscription<\/span><\/li>\n<\/ul>\n<p><strong>Cluster Details:<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Cluster Preset Configuration &#8211; Select Dev\/Test under Cluster Preset Configuration<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Kubernetes Cluster Name &#8211;\u00a0 Give your own name for the cluster<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Region: Central US<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click on next button<\/span><\/span><\/span><\/span><\/span><img decoding=\"async\" class=\"alignnone size-full wp-image-97956\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/creation-of-the-cluster.webp\" alt=\"kubernetes cluster name\" width=\"1999\" height=\"1143\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/creation-of-the-cluster.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/creation-of-the-cluster-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/creation-of-the-cluster-1024x586.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/creation-of-the-cluster-768x439.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/creation-of-the-cluster-1536x878.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/creation-of-the-cluster-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><br \/>\n4. Now go to the Node Pool tab and in the default node pool, Select the node size, In that page enter the following details<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Node Size &#8211; Click on select size, and select <\/span><b>Standard D2as v4 <\/b><span style=\"font-weight: 400;\">and click <\/span><b>OK<\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Scale method &#8211; Select Manual<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Node count &#8211; Enter 2<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Max pods per nodes &#8211; Enter 30<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click on Update<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><img decoding=\"async\" class=\"alignnone size-full wp-image-97958\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/select-vm-size.webp\" alt=\"select vm size\" width=\"1999\" height=\"1143\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/select-vm-size.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/select-vm-size-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/select-vm-size-1024x586.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/select-vm-size-768x439.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/select-vm-size-1536x878.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/select-vm-size-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><img decoding=\"async\" class=\"alignnone size-full wp-image-97959\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/update-node-pool-tab.webp\" alt=\"update node pool\" width=\"1999\" height=\"1131\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/update-node-pool-tab.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/update-node-pool-tab-300x170.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/update-node-pool-tab-1024x579.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/update-node-pool-tab-768x435.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/update-node-pool-tab-1536x869.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/update-node-pool-tab-150x85.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/>5. Under the Monitoring tab, Uncheck Enable Prometheus Monitoring button.<img decoding=\"async\" class=\"alignnone size-full wp-image-97960\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/prometheus-monitoring-button.webp\" alt=\"prometheus monitoring button\" width=\"1999\" height=\"1141\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/prometheus-monitoring-button.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/prometheus-monitoring-button-300x171.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/prometheus-monitoring-button-1024x584.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/prometheus-monitoring-button-768x438.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/prometheus-monitoring-button-1536x877.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/prometheus-monitoring-button-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/>6. Click on Review and Create, so that Azure Kubernetes Service will be deployed. After the deployment is complete, Click on go to resource.<img decoding=\"async\" class=\"alignnone size-full wp-image-97962\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-go-to-resource.webp\" alt=\"aks mykube\" width=\"1999\" height=\"1143\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-go-to-resource.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-go-to-resource-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-go-to-resource-1024x586.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-go-to-resource-768x439.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-go-to-resource-1536x878.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-go-to-resource-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Deploy_a_Container_on_AKS\"><\/span><strong><br \/>\nDeploy a Container on AKS<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">On the left side panel, under Kubernetes resources, select workloads and click on create and apply a YAML.<br \/>\n<\/span><\/span><\/span><br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-97963\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-and-apply-yaml.webp\" alt=\"create and apply yaml\" width=\"1999\" height=\"1142\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-and-apply-yaml.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-and-apply-yaml-300x171.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-and-apply-yaml-1024x585.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-and-apply-yaml-768x439.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-and-apply-yaml-1536x877.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-and-apply-yaml-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><img decoding=\"async\" class=\"alignnone size-full wp-image-97964\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-mykube-workloads.webp\" alt=\"aks mykube workloads\" width=\"1999\" height=\"1144\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-mykube-workloads.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-mykube-workloads-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-mykube-workloads-1024x586.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-mykube-workloads-768x440.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-mykube-workloads-1536x879.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-mykube-workloads-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/>2.Copy and paste the below Yaml deployment in the yaml tab and click on Add.<\/li>\n<\/ol>\n<pre><span style=\"font-weight: 400;\">apiVersion: apps\/v1<\/span>\r\n<span style=\"font-weight: 400;\">kind: Deployment<\/span>\r\n<span style=\"font-weight: 400;\">metadata:<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0name: nginx<\/span>\r\n<span style=\"font-weight: 400;\">spec:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0replicas: 1<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0selector:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0matchLabels:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0app: nginx<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0template:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0metadata:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0labels:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0app: nginx<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0spec:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0containers:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0- name: nginx<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0image: nginx:1.15.2<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ports:<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0- containerPort: 80<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97965\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-add-yaml.webp\" alt=\"aks add yaml\" width=\"1999\" height=\"1143\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-add-yaml.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-add-yaml-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-add-yaml-1024x586.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-add-yaml-768x439.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-add-yaml-1536x878.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/aks-add-yaml-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>3.You can see the nginx server has been deployed.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97966\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-server-deployed.webp\" alt=\"nginx server deployed\" width=\"1999\" height=\"1142\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-server-deployed.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-server-deployed-300x171.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-server-deployed-1024x585.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-server-deployed-768x439.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-server-deployed-1536x877.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-server-deployed-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Create_a_Service_Load_Balancer_for_the_container\"><\/span><strong>Create a Service (Load Balancer) for the container<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click on the Service and Ingress from the left menu of Kubernetes resources.<\/span><\/span><\/span><\/span><\/span><\/span><img decoding=\"async\" class=\"alignnone size-full wp-image-97967\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/service-and-ingress.webp\" alt=\"Service and Ingress\" width=\"1999\" height=\"1145\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/service-and-ingress.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/service-and-ingress-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/service-and-ingress-1024x587.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/service-and-ingress-768x440.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/service-and-ingress-1536x880.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/service-and-ingress-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/>2. Click on Create and Select Apply a YAML.<img decoding=\"async\" class=\"alignnone wp-image-97968 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-select-apply-yaml.webp\" alt=\"create and select apply a yaml\" width=\"1999\" height=\"1139\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-select-apply-yaml.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-select-apply-yaml-300x171.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-select-apply-yaml-1024x583.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-select-apply-yaml-768x438.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-select-apply-yaml-1536x875.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/create-select-apply-yaml-150x85.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/>3. Now we have the service deployment file, which will place a load balancer in front of our container, allowing external access to the container over the internet.\n<p>4. Copy and paste the below code and click on add.<\/li>\n<\/ol>\n<pre><span style=\"font-weight: 400;\">apiVersion: v1<\/span>\r\n<span style=\"font-weight: 400;\">kind: Service<\/span>\r\n<span style=\"font-weight: 400;\">metadata:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0name: whizlab-service<\/span>\r\n<span style=\"font-weight: 400;\">spec:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0type: LoadBalancer<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0ports:<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0- port: 80<\/span>\r\n<span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0\u00a0selector:<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0app: nginx<\/span><\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97969\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-access-to-the-container.webp\" alt=\"external access to the container\" width=\"1999\" height=\"1127\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-access-to-the-container.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-access-to-the-container-300x169.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-access-to-the-container-1024x577.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-access-to-the-container-768x433.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-access-to-the-container-1536x866.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-access-to-the-container-150x85.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\"><br \/>\n5. You can see the service has been deployed with the external IP address.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97970\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-ip-address.webp\" alt=\"external ip address\" width=\"1999\" height=\"1143\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-ip-address.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-ip-address-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-ip-address-1024x586.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-ip-address-768x439.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-ip-address-1536x878.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/external-ip-address-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\"><br \/>\n6. Click on the external IP address, you are able to see the Nginx web page has been exposed on the internet.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-97971\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-web-page-exposed-on-the-internet.webp\" alt=\"nginx web page has been exposed on the internet\" width=\"1999\" height=\"1146\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-web-page-exposed-on-the-internet.webp 1999w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-web-page-exposed-on-the-internet-300x172.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-web-page-exposed-on-the-internet-1024x587.webp 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-web-page-exposed-on-the-internet-768x440.webp 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-web-page-exposed-on-the-internet-1536x881.webp 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/nginx-web-page-exposed-on-the-internet-150x86.webp 150w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span><strong><br \/>\nConclusion<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The blog post covered the topic of setting up Azure Kubernetes Service\u00a0 using the Azure Portal in a straightforward manner.AKS offers security and scalability, for Kubernetes, on Azure without requiring handling of the intricate Kubernetes infrastructure. This allows teams to effortlessly develop and oversee applications.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Azure Kubernetes Service\u00a0 holds importance for those preparing for the <\/span><strong><a title=\"AZ-104: Microsoft Azure Administrator\" href=\"https:\/\/www.whizlabs.com\/microsoft-azure-certification-az-104\/\" target=\"_blank\" rel=\"noopener\">AZ-104: Microsoft Azure Administrator<\/a><\/strong><span style=\"font-weight: 400;\"> Certification. Dive into the scenario provided in our <\/span><strong><a title=\"Hands-on Labs\" href=\"https:\/\/www.whizlabs.com\/learn\/course\/microsoft-azure-certification-az-104\/298\/lab\" target=\"_blank\" rel=\"noopener\">Hands-on Labs<\/a><\/strong><span style=\"font-weight: 400;\"><strong>.<\/strong> Try it out in our <\/span><strong><a title=\"Azure Sandbox\" href=\"https:\/\/www.whizlabs.com\/azure-sandbox\/\" target=\"_blank\" rel=\"noopener\">Azure Sandbox<\/a><\/strong><span style=\"font-weight: 400;\"> setups to gain hands-on experience with AKS in Azure.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft offers a managed Kubernetes service called Azure Kubernetes Service which reduces the process of deploying, scaling, and managing containerized applications. As containerized workloads become more popular across companies, AKS provides a simple approach for developers and businesses to utilize Kubernetes as its infrastructure is not to be bothered with. Such a situation allows the teams to pay more attention to their applications and less to the management of distributed systems. This blog is particularly focused on Azure Kubernetes Service, its essential feature and go through the steps to set up an AKS cluster. We will also execute the yaml [&hellip;]<\/p>\n","protected":false},"author":436,"featured_media":97937,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[15],"tags":[5034,2307,2309],"class_list":["post-97924","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-azure","tag-az-104","tag-azure-kubernetes-service-aks","tag-azure-kubernetes-service-documentation"],"uagb_featured_image_src":{"full":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service.webp",1536,864,false],"thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-150x150.webp",150,150,true],"medium":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-300x169.webp",300,169,true],"medium_large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-768x432.webp",768,432,true],"large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-1024x576.webp",1024,576,true],"1536x1536":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service.webp",1536,864,false],"2048x2048":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service.webp",1536,864,false],"profile_24":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-24x24.webp",24,24,true],"profile_48":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-48x48.webp",48,48,true],"profile_96":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-96x96.webp",96,96,true],"profile_150":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-150x150.webp",150,150,true],"profile_300":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-300x300.webp",300,300,true],"tptn_thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-250x250.webp",250,250,true],"web-stories-poster-portrait":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-640x853.webp",640,853,true],"web-stories-publisher-logo":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-96x96.webp",96,96,true],"web-stories-thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/11\/step-by-step-nginx-deployment-on-azure-kubernetes-service-150x84.webp",150,84,true]},"uagb_author_info":{"display_name":"Swetha Selvakumar","author_link":"https:\/\/www.whizlabs.com\/blog\/author\/swetha-selvakumar\/"},"uagb_comment_info":2,"uagb_excerpt":"Microsoft offers a managed Kubernetes service called Azure Kubernetes Service which reduces the process of deploying, scaling, and managing containerized applications. As containerized workloads become more popular across companies, AKS provides a simple approach for developers and businesses to utilize Kubernetes as its infrastructure is not to be bothered with. Such a situation allows the&hellip;","_links":{"self":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/97924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/users\/436"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/comments?post=97924"}],"version-history":[{"count":56,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/97924\/revisions"}],"predecessor-version":[{"id":98992,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/97924\/revisions\/98992"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media\/97937"}],"wp:attachment":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media?parent=97924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/categories?post=97924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/tags?post=97924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}