Skip to content

Commit 232d0d8

Browse files
authored
Merge pull request #107697 from laurenhughes/lh-1683252-ubuntu-cluster-config
[AKS] new cluster config doc
2 parents 9efaa87 + 7b49f41 commit 232d0d8

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

articles/aks/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
href: upgrade-cluster.md
124124
- name: Process node OS updates
125125
href: node-updates-kured.md
126+
- name: Configure an AKS cluster
127+
href: cluster-configuration.md
126128
- name: Integrate ACR with an AKS cluster
127129
href: cluster-container-registry-integration.md
128130
- name: Create virtual nodes

articles/aks/cluster-configuration.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
title: Cluster configuration in Azure Kubernetes Services (AKS)
3+
description: Learn how to configure a cluster in Azure Kubernetes Service (AKS)
4+
services: container-service
5+
ms.topic: conceptual
6+
ms.date: 03/12/2020
7+
---
8+
9+
# Configure an AKS cluster
10+
11+
As part of creating an AKS cluster, you may need to customize your cluster configuration to suit your needs. This article introduces a few options for customizing your AKS cluster.
12+
13+
## OS configuration (Preview)
14+
15+
AKS now supports Ubuntu 18.04 as the node operating system (OS) in preview. During the preview period, both Ubuntu 16.04 and Ubuntu 18.04 are available.
16+
17+
You must have the following resources installed:
18+
19+
- The Azure CLI, version 2.2.0 or later
20+
- The aks-preview 0.4.35 extension
21+
22+
To install the aks-preview 0.4.35 extension or later, use the following Azure CLI commands:
23+
24+
```azurecli
25+
az extension add --name aks-preview
26+
az extension list
27+
```
28+
29+
Register the `UseCustomizedUbuntuPreview` feature:
30+
31+
```azurecli
32+
az feature register --name UseCustomizedUbuntuPreview --namespace Microsoft.ContainerService
33+
```
34+
35+
It might take several minutes for the status to show as **Registered**. You can check the registration status by using the [az feature list](https://docs.microsoft.com/cli/azure/feature?view=azure-cli-latest#az-feature-list) command:
36+
37+
```azurecli
38+
az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService/UseCustomizedUbuntuPreview')].{Name:name,State:properties.state}"
39+
```
40+
41+
When the status shows as registered, refresh the registration of the `Microsoft.ContainerService` resource provider by using the [az provider register](https://docs.microsoft.com/cli/azure/provider?view=azure-cli-latest#az-provider-register) command:
42+
43+
```azurecli
44+
az provider register --namespace Microsoft.ContainerService
45+
```
46+
47+
Configure the cluster to use Ubuntu 18.04 when the cluster is created. Use the `--aks-custom-headers` flag to set the Ubuntu 18.04 as the default OS.
48+
49+
```azure-cli
50+
az aks create --name myAKSCluster --resource-group myResourceGroup --aks-custom-headers CustomizedUbuntu=aks-ubuntu-1804
51+
```
52+
53+
If you want to create a regular Ubuntu 16.04 cluster, you can do so by omitting the custom `--aks-custom-headers` tag.
54+
55+
## Custom resource group name
56+
57+
When you deploy an Azure Kubernetes Service cluster in Azure, a second resource group gets created for the worker nodes. By default, AKS will name the node resource group `MC_resourcegroupname_clustername_location`, but you can also provide your own name.
58+
59+
To specify your own resource group name, install the aks-preview Azure CLI extension version 0.3.2 or later. Using the Azure CLI, use the `--node-resource-group` parameter of the `az aks create` command to specify a custom name for the resource group. If you use an Azure Resource Manager template to deploy an AKS cluster, you can define the resource group name by using the `nodeResourceGroup` property.
60+
61+
```azurecli
62+
az aks create --name myAKSCluster --resource-group myResourceGroup --node-resource-group myNodeResourceGroup
63+
```
64+
65+
The secondary resource group is automatically created by the Azure resource provider in your own subscription. Note that you can only specify the custom resource group name when the cluster is created.
66+
67+
As you work with the node resource group, keep in mind that you cannot:
68+
69+
- Specify an existing resource group for the node resource group.
70+
- Specify a different subscription for the node resource group.
71+
- Change the node resource group name after the cluster has been created.
72+
- Specify names for the managed resources within the node resource group.
73+
- Modify or delete Azure-created tags of managed resources within the node resource group.
74+
75+
## Next steps
76+
77+
- Learn how to use `Kured` to [apply security and kernel updates to Linux nodes](node-updates-kured.md) in your cluster.
78+
- See [Upgrade an Azure Kubernetes Service (AKS) cluster](upgrade-cluster.md) to learn how to upgrade your cluster to the latest version of Kubernetes.
79+
- See the list of [Frequently asked questions about AKS](faq.md) to find answers to some common AKS questions.

0 commit comments

Comments
 (0)