Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

All roads lead to Rome-easy deployment of Azure Kubernetes service clusters

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Recently, I talked with my friends about the deployment of Kubernetes cluster. Due to the pure green network environment in China and the professional knowledge required by Kubernetes, it is really not easy to deploy a set of Kubernetes cluster elegantly. Therefore, my friend went through many hardships and took 2 days to finally deploy a complete set of Kubernetes cluster.

The ancients said that there are thousands of roads in the world, and all roads lead to Rome. So, is there a way to deploy a kunernetes cluster in ten minutes with a mouse click? The answer is yes. Recently, the official version of Century Internet Azure Kubernetes Service (AKS) was released, allowing us to deploy Kubernetes clusters with a highway.

What is Azure Kubernetes Services (AKS)?

Managed Kubernetes clusters can be easily deployed in Azure using Azure Kubernetes Services (AKS). AKS reduces the complexity and operational overhead of managing Kubernetes by offloading a significant amount of administrative workload to Azure. As a hosted Kubernetes service, Azure automates critical tasks such as health monitoring and maintenance. Kubernetes master nodes are managed by Azure. You only manage and maintain proxy nodes. As a hosted Kubernetes service, AKS is free-you pay only for proxy nodes in the cluster, not for master nodes.

how to deploy

1. Log in to Azure portal, search for "AKS" in the market, and find "kubernetes Service"

2. Basic information-configure the following options:

Project details: Select an Azure subscription, then select or create an Azure resource group, such as alan_shi. Enter the Kubernetes cluster name, for example ITDEMO.

Cluster Details: Select the zone, Kubernetes version, and DNS name prefix for the AKS cluster.

Size: Select the VM size of the AKS node. Once the AKS cluster is deployed, the VM size cannot be changed.

3. Configure cluster network and Docker address

Enable Azure Monitor for containers

5. Verify the created information. If there is no problem, click Create.

6. After about 10 minutes, we can see the AKS service and basic information in Azure Portal.

8. In the virtual machine page, you can also see the node node.

9. If you want to manage AKS cluster locally, you need to install kubectl client using az aks install-cli.

To configure kubectl to connect to Kubernetes clusters, use the az aks get-credentials command. This command downloads credentials and configures the Kubernetes CLI to use them.

az aks get-credentials --resource-group alan_shi --name ITDEMO

To verify connectivity to a cluster, use the kubectl get command to return a list of cluster nodes

Create a folder to store yaml files

Create a file named azure-nginx.yaml and copy it into the following YAML definition. Then deploy the application using the kubectl apply command and specify the name of the YAML manifest. You can monitor progress using the get service command with the--watch parameter

When the EXTERNAL IP address changes from pending to an actual public IP address, you can open a Web browser and go to the external IP address of the service.

Finally, we can also monitor health and logs in Azure Portal

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report