Skip to content

Commit 2ba1b77

Browse files
Merge pull request #209836 from miwithro/patch-165
Update cluster-configuration.md
2 parents 3c32319 + 059a5f0 commit 2ba1b77

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

articles/aks/cluster-configuration.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Cluster configuration in Azure Kubernetes Services (AKS)
33
description: Learn how to configure a cluster in Azure Kubernetes Service (AKS)
44
services: container-service
55
ms.topic: article
6-
ms.date: 08/05/2022
6+
ms.date: 08/31/2022
77
ms.author: jpalma
88
author: palma21
99
---
@@ -140,6 +140,53 @@ As you work with the node resource group, keep in mind that you can't:
140140
- Specify names for the managed resources within the node resource group.
141141
- Modify or delete Azure-created tags of managed resources within the node resource group.
142142

143+
## Node Restriction (Preview)
144+
145+
The [Node Restriction](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#noderestriction) admission controller limits the Node and Pod objects a kubelet can modify. Node Restriction is on by default in AKS 1.24+ clusters. If you are using an older version use the below commands to create a cluster with Node Restriction or Update an existing cluster to add Node Restriction.
146+
147+
[!INCLUDE [preview features callout](./includes/preview/preview-callout.md)]
148+
149+
### Before you begin
150+
151+
You must have the following resource installed:
152+
153+
* The Azure CLI
154+
* The `aks-preview` extension version 0.5.95 or later
155+
156+
#### Install the aks-preview CLI extension
157+
158+
```azurecli-interactive
159+
# Install the aks-preview extension
160+
az extension add --name aks-preview
161+
162+
# Update the extension to make sure you have the latest version installed
163+
az extension update --name aks-preview
164+
```
165+
166+
### Create an AKS cluster with Node Restriction
167+
168+
To create a cluster using Node Restriction.
169+
170+
```azurecli-interactive
171+
az aks create -n aks -g myResourceGroup --enable-node-restriction
172+
```
173+
174+
### Update an AKS cluster with Node Restriction
175+
176+
To update a cluster to use Node Restriction.
177+
178+
```azurecli-interactive
179+
az aks update -n aks -g myResourceGroup --enable-node-restriction
180+
```
181+
182+
### Remove Node Restriction from an AKS cluster
183+
184+
To remove Node Restriction from a cluster.
185+
186+
```azurecli-interactive
187+
az aks update -n aks -g myResourceGroup --disable-node-restriction
188+
```
189+
143190
## OIDC Issuer (Preview)
144191

145192
This enables an OIDC Issuer URL of the provider which allows the API server to discover public signing keys.

0 commit comments

Comments
 (0)