Azure
Azure's container services, specifically the Azure Container Service (AKS) and Azure Container Service (ACS), offer unique opportunities for deployment and management of containerized applications. AKS, recently debuted by Microsoft Azure, runs separately from ACS. Through AKS, users can easily deploy and manage containerized applications without needing specialist knowledge of container business processes. Even better? The AKS platform doesn't require any additional user maintenance - it offers automatic upgrades, fault repair, and scaling of resource pools as needed. What’s more, users only pay for virtual machines running their containers - AKS’s cluster management is completely free of charge.
Since 2015, Microsoft Azure's ACS has supported a range of container orchestration tools, including Kubernetes, DCOS, and Dockers Swarm. What's also cool about ACS is that its core function is open source – users can check it out and download it from their Github page at https://github.com/Azure/acs-engine.
AKS: A Deep Dive
Getting Started
Following are simple steps to get started with AKS. The process will require the Azure CLI software to be installed on your computer. If it's not already installed, you can do that from here.
Before you can create AKS clusters, you first need to enable AKS using the following command:
The next step is to create a resource group to manage all the related resources:
Now, you are ready to create your AKS clusters:
It’s almost done! Once your cluster is created, install and configure kubectl:
Using version 2.0.24 of azure-cli might result in the
az aks get-credentials
command failing. You can fix this by upgrading to a newer version or reverting back to version 2.0.23.
Connect with Dashboard
Manually enlarge or shrink your cluster
Upgrade your cluster
Get your cluster's current version and check the ones you can upgrade to:
The graphic below shows the process of deploying a version 1.7.7 cluster and upgrading it to version 1.8.1:
Using Helm
Other tools and services in the Kubernetes community can also be used, such as deploying the Nginx Ingress Controller with Helm:
Cluster deletion
Your cluster can be deleted when no longer required:
Looking at acs-engine
Although AKS is expected to be the future of Azure's container services, many users value being able to manage their own container clusters to ensure maximum flexibility (such as customizing master services). Such users can utilize the open-source acs-engine for creating and managing their clusters. Acs-engine is, actually, core to ACS. It is a command line tool that assists with deployment and management of Kubernetes, Swarm, and DC/OS clusters, by transforming a container cluster descriptor file into a group of ARM (Azure Resource Manager) templates.
In acs-engine, each cluster is described through a json file. For example, a Kubernetes cluster can be described as follows:
Azure's Container Registry
Around the same time that AKS was launched, Azure also debuted their Azure Container Registry (ACR) services. This service hosts users' private images.
Virtual Kubelet
Azure's container instances (ACI) offer a simplified way to run containers in Azure as ACI effectively absolves users from having to configure any virtual machines or other sophisticated services. Ideal for fast growth and resource adjustment, ACI is designed to be relatively straightforward. The Virtual Kubelet allows ACI to function as an unlimited Node for a Kubernetes cluster, making Node quantity a non-issue. ACI then automatically manages the cluster's resources based on the containers in operation.
You can use Helm to deploy your Virtual Kubelet:
References
最后更新于