Your company's security mandate requires all new AKS deployments to be private clusters, ensuring that the Kubernetes API server is accessible only within the internal network. You are preparing to deploy a private AKS cluster in a spoke virtual network named `VNet-Spoke` (). The Azure environment has a hub-and-spoke topology. The hub virtual network, `VNet-Hub` (), contains a custom DNS server running on a virtual machine at . `VNet-Spoke` is peered with `VNet-Hub` and is configured to use as its primary DNS server. You need to deploy the private AKS cluster and ensure that management clients in both `VNet-Spoke` and `VNet-Hub` can resolve the private FQDN of the AKS API server. What configuration should you implement?
- Link the Azure Private DNS zone created for the AKS cluster to `VNet-Hub`, and configure a conditional forwarder on the custom DNS server to forward queries for `azmk8s.io` to .Cevap
- BLink the Azure Private DNS zone created for the AKS cluster to `VNet-Spoke` only, and configure a conditional forwarder on the custom DNS server to forward queries for `azmk8s.io` to the default gateway IP address of `VNet-Spoke` ().
- CLink the Azure Private DNS zone to `VNet-Spoke`, and configure a DNS forwarding rule on `VNet-Spoke` that points to the Kubernetes internal service IP address .
- DConfigure a custom DNS zone named `privatelink.eastus.azmk8s.io` directly on the custom DNS server in `VNet-Hub` and initiate a zone transfer from the Azure DNS IP address .
Cevap
Link the Azure Private DNS zone created for the AKS cluster to `VNet-Hub`, and configure a conditional forwarder on the custom DNS server to forward queries for `azmk8s.io` to .
For private AKS clusters, the API server is exposed via a private endpoint. The FQDN resolves to a private IP via an Azure Private DNS zone (e.g., `privatelink.<region>.azmk8s.io`). When virtual networks use custom DNS servers, these servers must forward queries for the cluster's DNS zone to the Azure recursive resolver at . For this lookup to succeed, the Azure Private DNS zone must be linked to the virtual network hosting the custom DNS server (in this case, `VNet-Hub`).
Adım Adım Çözüm
Anahtar Kavram
Azure Private Link DNS integration with custom DNS in a hub-and-spoke network.