{"id":15675,"date":"2020-08-07T07:48:36","date_gmt":"2020-08-07T07:48:36","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=15675"},"modified":"2020-08-08T05:29:44","modified_gmt":"2020-08-08T05:29:44","slug":"deploy-an-azure-kubernetes-service-aks-cluster","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/","title":{"rendered":"Deploy an Azure Kubernetes Service (AKS) cluster"},"content":{"rendered":"\n<p>This tutorial will help you in learning about how to Deploy an Azure Kubernetes Service (AKS) cluster. Azure Kubernetes Service (AKS) is a managed Kubernetes service that lets you quickly deploy and manage clusters. In this quickstart, you deploy an AKS cluster using the Azure portal.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-an-aks-cluster\"><strong>Create an AKS cluster<\/strong><\/h3>\n\n\n\n<p>To create an AKS cluster, complete the following steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, On the Azure portal menu or from the&nbsp;<strong>Home<\/strong>&nbsp;page, choose&nbsp;<strong>Create a resource<\/strong>.<\/li><li>choose&nbsp;<strong>Containers<\/strong>&nbsp;&gt;&nbsp;<strong>Kubernetes Service<\/strong>.<\/li><li>On the&nbsp;<strong>Basics<\/strong>&nbsp;page, set the following options:<ul><li><strong>Project details<\/strong>: choose an Azure&nbsp;<strong>Subscription<\/strong>, then choose or create an Azure&nbsp;<strong>Resource group<\/strong>, such as&nbsp;<em>myResourceGroup<\/em>.<\/li><li><strong>Cluster details<\/strong>: Enter a&nbsp;<strong>Kubernetes cluster name<\/strong>, such as&nbsp;<em>myAKSCluster<\/em>. choose a&nbsp;<strong>Region<\/strong>,&nbsp;<strong>Kubernetes version<\/strong>, and&nbsp;<strong>DNS name prefix<\/strong>&nbsp;for the AKS cluster.<\/li><li><strong>Primary node pool<\/strong>: choose a VM&nbsp;<strong>Node size<\/strong>&nbsp;for the AKS nodes. The VM size&nbsp;<em>can&#8217;t<\/em>&nbsp;be changed once an AKS cluster has been deployed. &#8211; choose the number of nodes to deploy into the cluster. For this quickstart, set&nbsp;<strong>Node count<\/strong>&nbsp;to&nbsp;<em>1<\/em>. Node count&nbsp;<em>can<\/em>&nbsp;be adjusted after the cluster has been deployed.<\/li><\/ul><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/aks\/media\/kubernetes-walkthrough-portal\/create-cluster-basics.png\" alt=\"Create AKS cluster - provide basic information\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>choose&nbsp;<strong>Next: Scale<\/strong>&nbsp;when complete.<\/li><li>On the&nbsp;<strong>Scale<\/strong>&nbsp;page, keep the default options. At the bottom of the screen,choose <strong>Next: Authentication<\/strong>.<\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\"><li>On the&nbsp;<strong>Authentication<\/strong>&nbsp;page, configure the following options:<ul><li>Create a new service principal by leaving the&nbsp;<strong>Service Principal<\/strong>&nbsp;field with&nbsp;<strong>(new) default service principal<\/strong>. Or you can choose&nbsp;<em>Configure service principal<\/em>&nbsp;to use an existing one. If you use an existing one, you will need to provide the SPN client ID and secret.<\/li><li>Enable the option for Kubernetes role-based access controls (RBAC). This will provide more fine-grained control over access to the Kubernetes resources deployed in your AKS cluster.<\/li><\/ul>Alternatively, you can use a managed identity instead of a service principal. See&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/aks\/use-managed-identity\">use managed identities<\/a>&nbsp;for more information.<\/li><\/ol>\n\n\n\n<p>By default,&nbsp;<em>Basic<\/em>&nbsp;networking is used, and Azure Monitor for containers is enabled. Click&nbsp;<strong>Review + create<\/strong>&nbsp;and then&nbsp;<strong>Create<\/strong>&nbsp;when validation completes.<\/p>\n\n\n\n<p>It takes a few minutes to create the AKS cluster. When your deployment is complete, click&nbsp;<strong>Go to resource<\/strong>, or browse to the AKS cluster resource group, such as&nbsp;<em>myResourceGroup<\/em>, and select the AKS resource, such as&nbsp;<em>myAKSCluster<\/em>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"connect-to-the-cluster\"><strong>Connect to the cluster<\/strong><\/h3>\n\n\n\n<p>To manage a Kubernetes cluster, you use&nbsp;kubectl, the Kubernetes command-line client. The&nbsp;<code>kubectl<\/code>&nbsp;client is pre-installed in the Azure Cloud Shell.<\/p>\n\n\n\n<p>Open Cloud Shell using the&nbsp;<code>&gt;_<\/code>&nbsp;button on the top of the Azure portal.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/aks\/media\/kubernetes-walkthrough-portal\/aks-cloud-shell.png\" alt=\"Open the Azure Cloud Shell in the portal\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>To configure&nbsp;<code>kubectl<\/code>&nbsp;to connect to your Kubernetes cluster, use the&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/aks?view=azure-cli-latest#az-aks-get-credentials\">az aks get-credentials<\/a>&nbsp;command. This command downloads credentials and configures the Kubernetes CLI to use them.<\/p>\n\n\n\n<p>To verify the connection to your cluster, use the&nbsp;<a href=\"https:\/\/kubernetes.io\/docs\/reference\/generated\/kubectl\/kubectl-commands#get\">kubectl get<\/a>&nbsp;command to return a list of the cluster nodes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"monitor-health-and-logs\"><strong>Monitor health and logs<\/strong><\/h3>\n\n\n\n<p>When you created the cluster, Azure Monitor for containers was enabled. This monitoring feature provides health metrics for both the AKS cluster and pods running on the cluster.<\/p>\n\n\n\n<p>It may take a few minutes for this data to populate in the Azure portal. To see current status, uptime, and resource usage for the Azure Vote pods, browse back to the AKS resource in the Azure portal, such as&nbsp;<em>myAKSCluster<\/em>. You can then access the health status as follows:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Firstly, Under&nbsp;<strong>Monitoring<\/strong>&nbsp;on the left-hand side, choose&nbsp;<strong>Insights<\/strong><\/li><li>Also, Across the top, choose to&nbsp;<strong>+ Add Filter<\/strong><\/li><li>Subsequently, Select&nbsp;<em>Namespace<\/em>&nbsp;as the property, then choose&nbsp;<em>&lt;All but kube-system&gt;<\/em><\/li><li>Finally, Choose to view the&nbsp;<strong>Containers<\/strong>.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"delete-cluster\"><strong>Delete cluster<\/strong><\/h3>\n\n\n\n<p>When the cluster is no longer needed, delete the cluster resource, which deletes all associated resources. This operation can be completed in the Azure portal by selecting the&nbsp;<strong>Delete<\/strong>&nbsp;button on the AKS cluster dashboard. Alternatively, the&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/aks#az-aks-delete\">az aks delete<\/a>&nbsp;command can be used in the Cloud Shell:<\/p>\n\n\n\n<p>az aks delete &#8211;resource-group myResourceGroup &#8211;name myAKSCluster &#8211;no-wait<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-architect-technologies-az-303-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png\" alt=\"free practice test for AZ- 303\" class=\"wp-image-13928\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png 960w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5-750x117.png 750w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-303-microsoft-azure-architect-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Go back to home page <\/strong><\/a><\/p>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference documentation &#8211;<\/strong> <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/aks\/kubernetes-walkthrough-portal\" target=\"_blank\" rel=\"noreferrer noopener\">Quickstart: Deploy an Azure Kubernetes Service (AKS) cluster using the Azure portal<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will help you in learning about how to Deploy an Azure Kubernetes Service (AKS) cluster. Azure Kubernetes Service (AKS) is a managed Kubernetes service that lets you quickly deploy and manage clusters. In this quickstart, you deploy an AKS cluster using the Azure portal.&nbsp; Create an AKS cluster To create an AKS cluster,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-15675","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Deploy an Azure Kubernetes Service (AKS) cluster<\/title>\n<meta name=\"description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial -Deploy an Azure Kubernetes Service (AKS) cluster. Crack the exam now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploy an Azure Kubernetes Service (AKS) cluster\" \/>\n<meta property=\"og:description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial -Deploy an Azure Kubernetes Service (AKS) cluster. Crack the exam now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-08T05:29:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.microsoft.com\/en-us\/azure\/aks\/media\/kubernetes-walkthrough-portal\/create-cluster-basics.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/\",\"name\":\"Deploy an Azure Kubernetes Service (AKS) cluster\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-08-07T07:48:36+00:00\",\"dateModified\":\"2020-08-08T05:29:44+00:00\",\"description\":\"Enhance and upgrade your Azure Architect skills by preparing from tutorial -Deploy an Azure Kubernetes Service (AKS) cluster. Crack the exam now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deploy an Azure Kubernetes Service (AKS) cluster\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deploy an Azure Kubernetes Service (AKS) cluster","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial -Deploy an Azure Kubernetes Service (AKS) cluster. Crack the exam now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/","og_locale":"en_US","og_type":"article","og_title":"Deploy an Azure Kubernetes Service (AKS) cluster","og_description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial -Deploy an Azure Kubernetes Service (AKS) cluster. Crack the exam now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-08-08T05:29:44+00:00","og_image":[{"url":"https:\/\/docs.microsoft.com\/en-us\/azure\/aks\/media\/kubernetes-walkthrough-portal\/create-cluster-basics.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/","name":"Deploy an Azure Kubernetes Service (AKS) cluster","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-08-07T07:48:36+00:00","dateModified":"2020-08-08T05:29:44+00:00","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial -Deploy an Azure Kubernetes Service (AKS) cluster. Crack the exam now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-an-azure-kubernetes-service-aks-cluster\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Deploy an Azure Kubernetes Service (AKS) cluster"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/15675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=15675"}],"version-history":[{"count":2,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/15675\/revisions"}],"predecessor-version":[{"id":15861,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/15675\/revisions\/15861"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=15675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=15675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=15675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}