You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/aks/use-network-policies.md
+6-11Lines changed: 6 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ $LOCATION=canadaeast
89
89
90
90
Create the AKS cluster and specify *azure* for the `network-plugin` and `network-policy`.
91
91
92
-
Use the following command for a cluster running with **Linux** node pools:
92
+
Use the following command to create a cluster:
93
93
```azurecli
94
94
az aks create \
95
95
--resource-group $RESOURCE_GROUP_NAME \
@@ -117,14 +117,12 @@ Please execute the following commands prior to creating a cluster:
117
117
> At this time, Azure NPM with Windows nodes is available on Windows Server 2022 only
118
118
>
119
119
120
-
Now, you should replace the values for *$RESOURCE_GROUP_NAME*, *$CLUSTER_NAME*, *$WINDOWS_USERNAME*, *$WINDOWS_PASSWORD*and *$k8S_VERSION* variables.
120
+
Now, you should replace the values for *$RESOURCE_GROUP_NAME*, *$CLUSTER_NAME*and *$WINDOWS_USERNAME* variables.
121
121
122
122
```azurecli-interactive
123
123
$RESOURCE_GROUP_NAME=myResourceGroup-NP
124
124
$CLUSTER_NAME=myAKSCluster
125
125
$WINDOWS_USERNAME=myWindowsUserName
126
-
$WINDOWS_PASSWORD=myWindowsPassword
127
-
$k8S_VERSION=myk8sVersion
128
126
$LOCATION=canadaeast
129
127
```
130
128
@@ -134,19 +132,16 @@ Create a username to use as administrator credentials for your Windows Server co
134
132
echo "Please enter the username to use as administrator credentials for Windows Server containers on your cluster: " && read $WINDOWS_USERNAME
135
133
```
136
134
137
-
Use the following command for a cluster running with **Windows Server 2022** node pools:
135
+
Use the following command to create a cluster :
138
136
139
137
```azurecli
140
138
az aks create \
141
139
--resource-group $RESOURCE_GROUP_NAME \
142
140
--name $CLUSTER_NAME \
143
-
--generate-ssh-keys \
144
-
--windows-admin-username $WINDOWS_USERNAME \
145
-
--windows-admin-password $WINDOWS_PASSWORD \
146
-
--kubernetes-version $k8S_VERSION \
141
+
--node-count 1 \
142
+
--windows-admin-username $WINDOWS_USERNAME \
147
143
--network-plugin azure \
148
-
--vm-set-type VirtualMachineScaleSets \
149
-
--node-count 1
144
+
--network-policy azure
150
145
```
151
146
152
147
It takes a few minutes to create the cluster. By default, your cluster is created with only a Linux node pool. If you would like to use Windows node pools, you can add one. For example:
0 commit comments