Edit

Troubleshoot the "DnsServiceIpOutOfServiceCidr" error code in Azure Kubernetes Service

Summary

This article discusses how to identify and resolve the DnsServiceIpOutOfServiceCidr error that occurs when you try to create or upgrade an Azure Kubernetes Service (AKS) cluster.

Prerequisites

This article requires Azure CLI version 2.0.65 or a later version. To find the version number, run az --version. To install or upgrade Azure CLI, see How to install the Azure CLI.

For more detailed information about the upgrade process, see Upgrade an AKS cluster.

Symptoms

An AKS cluster create operation fails, and you receive a DnsServiceIpOutOfServiceCidr error message.

(DnsServiceIpOutOfServiceCidr) The DNS service IP 10.0.0.10 is out of the range defined by service CIDR 10.200.0.0/16.

The following error details are included in the message:

  • Code - DnsServiceIpOutOfServiceCidr
  • Message - The DNS service IP 10.0.0.10 is out of the range defined by service Classless Inter‑Domain Routing (CIDR) 10.200.0.0/16.
  • Target - networkProfile.dnsServiceIP

Cause

This error occurs if the DNS service IP (--dns-service-ip) for AKS is out of the range that's defined by the service CIDR (--service-cidr).

Solution

Ensure that the Domain Name System (DNS) service IP is within the range defined by the service CIDR.