Skip to content

Commit 96ddc0f

Browse files
committed
New cluster config doc
1 parent 6199b61 commit 96ddc0f

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

articles/aks/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@
126126
href: upgrade-cluster.md
127127
- name: Process node OS updates
128128
href: node-updates-kured.md
129+
- name: Configure an AKS cluster
130+
href: configure-cluster.md
129131
- name: Delete an AKS cluster
130132
href: /cli/azure/aks#az-aks-delete
131133
maintainContext: true

articles/aks/cluster-configuration.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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. To continue using clusters with Ubuntu 16.04, do not add the `--aks-custom-headers` tag as shown in the following examples.
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+
> [!CAUTION]
30+
> After you register a feature on a subscription, you can't currently unregister that feature. When you enable some preview features, defaults might be used for all AKS clusters created afterward in the subscription. Don't enable preview features on production subscriptions. Instead, use a separate subscription to test preview features and gather feedback.
31+
32+
```azurecli
33+
az feature register --name UseCustomizedUbuntuPreview --namespace Microsoft.ContainerService
34+
```
35+
36+
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:
37+
38+
```azurecli
39+
az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService/UseCustomizedUbuntuPreview')].{Name:name,State:properties.state}"
40+
```
41+
42+
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:
43+
44+
```azurecli
45+
az provider register --namespace Microsoft.ContainerService
46+
```
47+
48+
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.
49+
50+
```azure-cli
51+
az aks create --name myAKSCluster --resource-group myResourceGroup --aks-custom-headers CustomizedUbuntu=aks-ubuntu-1804
52+
```
53+
54+
## Custom resource group name
55+
56+
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.
57+
58+
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.
59+
60+
```azurecli
61+
az aks create --name myAKSCluster --resource-group myResourceGroup --node-resource-group myNodeResourceGroup
62+
```
63+
64+
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.
65+
66+
As you work with the node resource group, keep in mind that you cannot:
67+
68+
- Specify an existing resource group for the node resource group.
69+
- Specify a different subscription for the node resource group.
70+
- Change the node resource group name after the cluster has been created.
71+
- Specify names for the managed resources within the node resource group.
72+
- Modify or delete Azure-created tags of managed resources within the node resource group.
73+
74+
## Next steps
75+
76+
- Learn how to use Kured to [apply security and kernel updates to Linux nodes](node-updates-kured.md) in your cluster.
77+
- See [Upgrade an Azure Kubernetes Service (AKS) cluster](upgrade-cluster.md) to learn how to upgrade your cluster to the latest version of Kubernetes.
78+
- See the list of [Frequently asked questions about AKS](faq.md) to find answers to some common AKS questions.

0 commit comments

Comments
 (0)