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
#Customer intent: As an Azure Kubernetes user, I want to troubleshoot the container network interface download failures so that I can successfully create and deploy an Azure Kubernetes Service (AKS) cluster.
9
-
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
9
+
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool), innovation-engine
This article discusses how to identify and resolve the `CniDownloadTimeoutVMExtensionError` error code (also known as error code `ERR_CNI_DOWNLOAD_TIMEOUT`, error number 41) or the `WINDOWS_CSE_ERROR_DOWNLOAD_CNI_PACKAGE` error code (error number 35) that occurs when you try to create and deploy a Microsoft Azure Kubernetes Service (AKS) cluster.
14
15
15
16
## Prerequisites
16
17
17
18
- The [Curl](https://curl.se/download.html) command-line tool
19
+
- Network access from the same environment where AKS nodes will be deployed (same VNet, firewall rules, etc.)
18
20
19
21
## Symptoms
20
22
@@ -46,10 +48,76 @@ Your cluster nodes can't connect to the endpoint that's used to download the Con
46
48
47
49
Run a Curl command to verify that your nodes can download the binaries:
48
50
51
+
First, attempt a test download of the Azure CNI package for Linux from the official mirror endpoint.
This command checks if the endpoint is reachable and returns the HTTP headers. If you see a `200 OK` response, it indicates that the endpoint is accessible.
75
+
76
+
Next, attempt a download with validation and save the file locally for further troubleshooting. This will help determine if SSL or outbound connectivity is correctly configured.
-rw-r--r-- 1 user user 6651392 Jun 20 10:30 azure-vnet-cni-linux-amd64-v1.0.25.tgz
113
+
114
+
/tmp/cni-test/azure-vnet-cni-linux-amd64-v1.0.25.tgz: gzip compressed data, from Unix, original size modulo 2^32 20070400
115
+
```
116
+
117
+
Clean up the test files:
118
+
119
+
```bash
120
+
rm -rf /tmp/cni-test/
53
121
```
54
122
55
123
If you can't download these files, make sure that traffic is allowed to the downloading endpoint. For more information, see [Azure Global required FQDN/application rules](/azure/aks/outbound-rules-control-egress#azure-global-required-fqdn--application-rules).
Copy file name to clipboardExpand all lines: support/azure/azure-kubernetes/create-upgrade-delete/error-code-k8sapiserverdnslookupfailvmextensionerror.md
#Customer intent: As an Azure Kubernetes user, I want to troubleshoot the K8SAPIServerDNSLookupFailVMExtensionError error code (or error code ERR_K8S_API_SERVER_DNS_LOOKUP_FAIL, error number 52) so that I can successfully start or create and deploy an Azure Kubernetes Service (AKS) cluster.
8
-
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
8
+
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool), innovation-engine
9
9
---
10
+
10
11
# Troubleshoot the K8SAPIServerDNSLookupFailVMExtensionError error code (52)
11
12
12
13
This article discusses how to identify and resolve the `K8SAPIServerDNSLookupFailVMExtensionError` error (also known as error code ERR_K8S_API_SERVER_DNS_LOOKUP_FAIL, error number 52) that occurs when you try to start or create and deploy a Microsoft Azure Kubernetes Service (AKS) cluster.
@@ -32,6 +33,7 @@ When you try to start or create an AKS cluster, you receive the following error
32
33
> "ExitCode": "52",
33
34
>
34
35
> "Output": "Fri Oct 15 10:06:00 UTC 2021,aks- nodepool1-36696444-vmss000000\\nConnection to mcr.microsoft.com 443 port [tcp/https]
36
+
35
37
## Cause
36
38
37
39
The cluster nodes can't resolve the cluster's fully qualified domain name (FQDN) in Azure DNS. Run the following DNS lookup command on the failed cluster node to find DNS resolutions that are valid.
@@ -51,19 +53,39 @@ On your DNS servers and firewall, make sure that nothing blocks the resolution t
51
53
52
54
When you use a private cluster that has a custom DNS, a DNS zone is created. The DNS zone must be linked to the virtual network. This occurs after the cluster is created. Creating a private cluster that has a custom DNS fails during creation. However, you can restore the creation process to a "success" state by reconciling the cluster. To do this, run the [az resource update](/cli/azure/resource#az-resource-update) command in Azure CLI, as follows:
53
55
56
+
Below, set your AKS cluster and resource group names, then run the update command to reconcile the cluster. The environment variables will make your resource names unique and are declared just before use.
57
+
54
58
```azurecli-interactive
55
-
az resource update --resource-group <resource-group-name> \
56
-
--name <cluster-name> \
59
+
az resource update --resource-group $RESOURCE_GROUP_NAME \
0 commit comments