Skip to content

Commit 6b4b207

Browse files
Merge pull request #223731 from allyford/Windows-docs-clean-up-(outbound-nat,-add-windows-nodepool)
Update NAT Gateway, HPC, and Windows Node pools
2 parents 57632dd + 910f530 commit 6b4b207

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed

articles/aks/learn/quick-windows-container-deploy-cli.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,29 +109,49 @@ az aks create \
109109
110110
After a few minutes, the command completes and returns JSON-formatted information about the cluster. Occasionally the cluster can take longer than a few minutes to provision. Allow up to 10 minutes in these cases.
111111

112+
## Add a Windows node pool
113+
By default, an AKS cluster is created with a node pool that can run Linux containers. Use the `az aks nodepool add` command to add an additional node pool that can run Windows Server containers alongside the Linux node pool.
114+
115+
AKS supports Windows Server 2019 and Windows Server 2022 node pools. For Kubernetes versions "1.25.0" and higher, Windows Server 2022 is the default operating system. For earlier versions, Windows Server 2019 will be the default operating system.
116+
117+
Use the `az aks nodepool add` command to add a Windows nodepool:
118+
119+
```azurecli
120+
az aks nodepool add \
121+
--resource-group myResourceGroup \
122+
--cluster-name myAKSCluster \
123+
--os-type Windows \
124+
--name npwin \
125+
--node-count 1
126+
```
127+
128+
The above command creates a new node pool named *npwin* and adds it to the *myAKSCluster*. The above command also uses the default subnet in the default vnet created when running `az aks create`. The OS SKU was not specified so the nodepool will be set to the default operating system based on the Kubernetes version of the cluster.
129+
130+
112131
## Add a Windows Server 2019 node pool
113132

114-
By default, an AKS cluster is created with a node pool that can run Linux containers. Use `az aks nodepool add` command to add an additional node pool that can run Windows Server containers alongside the Linux node pool.
133+
When creating a Windows node pool, the default operating system will be Windows Server 2019 for Kubernetes versions below "1.25.0". To use Windows Server 2019 nodes when not default, you will need to specify an OS SKU type of `Windows2019`.
115134

116135
```azurecli-interactive
117136
az aks nodepool add \
118137
--resource-group myResourceGroup \
119138
--cluster-name myAKSCluster \
120139
--os-type Windows \
140+
--os-sku Windows2019 \
121141
--name npwin \
122142
--node-count 1
123143
```
124144

125-
The above command creates a new node pool named *npwin* and adds it to the *myAKSCluster*. The above command also uses the default subnet in the default vnet created when running `az aks create`.
145+
The above command creates a new Windows Server 2019 node pool named *npwin* and adds it to the *myAKSCluster*. The above command also uses the default subnet in the default vnet created when running `az aks create`.
126146

127147
## Add a Windows Server 2022 node pool
128148

129-
When creating a Windows node pool, the default operating system will be Windows Server 2019. To use Windows Server 2022 nodes, you will need to specify an OS SKU type of `Windows2022`.
149+
When creating a Windows node pool, the default operating system will be Windows Server 2022 for Kubernetes versions "1.25.0" and higher. To use Windows Server 2022 nodes when not default, you will need to specify an OS SKU type of `Windows2022`.
130150

131151
> [!NOTE]
132152
> Windows Server 2022 requires Kubernetes version "1.23.0" or higher.
133153
134-
Use `az aks nodepool add` command to add a Windows Server 2022 node pool:
154+
Use the `az aks nodepool add` command to add a Windows Server 2022 node pool:
135155

136156
```azurecli
137157
az aks nodepool add \

articles/aks/nat-gateway.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ To create an AKS cluster with a user-assigned NAT Gateway, use `--outbound-type
133133
--assign-identity $IDENTITY_ID
134134
```
135135
136-
## Disable OutboundNAT for Windows
136+
## Disable OutboundNAT for Windows (preview)
137137
138138
Windows OutboundNAT can cause certain connection and communication issues with your AKS pods. Some of these issues include:
139139
@@ -143,6 +143,9 @@ Windows OutboundNAT can cause certain connection and communication issues with y
143143
144144
Windows enables OutboundNAT by default. You can now manually disable OutboundNAT when creating new Windows agent pools.
145145
146+
> [!NOTE]
147+
> OutboundNAT can only be disabled on Windows Server 2019 nodepools.
148+
146149
### Prerequisites
147150
148151
* You need to use `aks-preview` and register the feature flag.

articles/aks/use-windows-hpc.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ spec:
7171
- name: powershell
7272
image: mcr.microsoft.com/powershell:lts-nanoserver-1809
7373
securityContext:
74-
privileged: true
7574
windowsOptions:
7675
hostProcess: true
7776
runAsUserName: "NT AUTHORITY\\SYSTEM"

0 commit comments

Comments
 (0)