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/private-clusters.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Create a private Azure Kubernetes Service cluster
3
3
description: Learn how to create a private Azure Kubernetes Service (AKS) cluster
4
4
services: container-service
5
5
ms.topic: article
6
-
ms.date: 05/27/2022
6
+
ms.date: 10/05/2022
7
7
8
8
---
9
9
@@ -21,10 +21,11 @@ Private cluster is available in public regions, Azure Government, and Azure Chin
21
21
22
22
## Prerequisites
23
23
24
-
* Azure CLI >= 2.28.0 or Azure CLI with aks-preview extension 0.5.29 or later.
25
-
* If using ARM or the rest API, the AKS API version must be 2021-05-01 or later.
26
-
* The Private Link service is supported on Standard Azure Load Balancer only. Basic Azure Load Balancer isn't supported.
27
-
* To use a custom DNS server, add the Azure DNS IP 168.63.129.16 as the upstream DNS server in the custom DNS server. For more information about the Azure DNS IP address, see [What is IP address 168.63.129.16?][virtual-networks-168.63.129.16]
24
+
* The Azure CLI version 2.28.0 and higher.
25
+
* The aks-preview extension 0.5.29 or higher.
26
+
* If using ARM or the Azure REST API, the AKS API version must be 2021-05-01 or higher.
27
+
* Azure Private Link service is supported on Standard Azure Load Balancer only. Basic Azure Load Balancer isn't supported.
28
+
* To use a custom DNS server, add the Azure public IP address 168.63.129.16 as the upstream DNS server in the custom DNS server. For more information about the Azure IP address, see [What is IP address 168.63.129.16?][virtual-networks-168.63.129.16]
28
29
29
30
## Create a private AKS cluster
30
31
@@ -36,7 +37,7 @@ Create a resource group or use an existing resource group for your AKS cluster.
36
37
az group create -l westus -n MyResourceGroup
37
38
```
38
39
39
-
### Default basic networking
40
+
### Default basic networking
40
41
41
42
```azurecli-interactive
42
43
az aks create -n <private-cluster-name> -g <private-cluster-resource-group> --load-balancer-sku standard --enable-private-cluster
@@ -58,11 +59,16 @@ az aks create \
58
59
--dns-service-ip 10.2.0.10 \
59
60
--service-cidr 10.2.0.0/24
60
61
```
61
-
Where `--enable-private-cluster` is a mandatory flag for a private cluster.
62
+
63
+
Where `--enable-private-cluster` is a mandatory flag for a private cluster.
62
64
63
65
> [!NOTE]
64
66
> If the Docker bridge address CIDR (172.17.0.1/16) clashes with the subnet CIDR, change the Docker bridge address appropriately.
65
67
68
+
## Use custom domains
69
+
70
+
If you want to configure custom domains that can only be resolved internally, see [Use custom domains][use-custom-domains] for more information.
71
+
66
72
## Disable Public FQDN
67
73
68
74
The following parameters can be leveraged to disable Public FQDN.
@@ -79,7 +85,7 @@ az aks create -n <private-cluster-name> -g <private-cluster-resource-group> --lo
79
85
az aks update -n <private-cluster-name> -g <private-cluster-resource-group> --disable-public-fqdn
80
86
```
81
87
82
-
## Configure Private DNS Zone
88
+
## Configure Private DNS Zone
83
89
84
90
The following parameters can be leveraged to configure Private DNS Zone.
85
91
@@ -124,9 +130,9 @@ Creating a VM in the same VNET as the AKS cluster is the easiest option. Express
124
130
## Virtual network peering
125
131
126
132
As mentioned, virtual network peering is one way to access your private cluster. To use virtual network peering, you need to set up a link between virtual network and the private DNS zone.
127
-
133
+
128
134
1. Go to the node resource group in the Azure portal.
129
-
2. Select the private DNS zone.
135
+
2. Select the private DNS zone.
130
136
3. In the left pane, select the **Virtual network** link.
131
137
4. Create a new link to add the virtual network of the VM to the private DNS zone. It takes a few minutes for the DNS zone link to become available.
132
138
5. In the Azure portal, navigate to the resource group that contains your cluster's virtual network.
@@ -233,28 +239,22 @@ Once the A record is created, link the private DNS zone to the virtual network t
233
239
> [!WARNING]
234
240
> If the private cluster is stopped and restarted, the private cluster's original private link service is removed and re-created, which breaks the connection between your private endpoint and the private cluster. To resolve this issue, delete and re-create any user created private endpoints linked to the private cluster. DNS records will also need to be updated if the re-created private endpoints have new IP addresses.
235
241
236
-
## Limitations
242
+
## Limitations
243
+
237
244
* IP authorized ranges can't be applied to the private API server endpoint, they only apply to the public API server
238
245
*[Azure Private Link service limitations][private-link-service] apply to private clusters.
239
246
* No support for Azure DevOps Microsoft-hosted Agents with private clusters. Consider using [Self-hosted Agents](/azure/devops/pipelines/agents/agents?tabs=browser).
240
247
* If you need to enable Azure Container Registry to work with a private AKS cluster, [set up a private link for the container registry in the cluster virtual network][container-registry-private-link] or set up peering between the Container Registry virtual network and the private cluster's virtual network.
241
248
* No support for converting existing AKS clusters into private clusters
242
-
* Deleting or modifying the private endpoint in the customer subnet will cause the cluster to stop functioning.
249
+
* Deleting or modifying the private endpoint in the customer subnet will cause the cluster to stop functioning.
0 commit comments