Hi nslaksauto,
I have shared troubleshooting steps that I felt will help resolve the issue you reported.
Check that your AKS cluster is running and healthy. You can do this by running the following command, this will tell the provisioning state of your AKS cluster. If the state is Succeeded
, then your AKS cluster is running and healthy:
az aks show --resource-group <resource-group-name> --name <aks-cluster-name> --query 'provisioningState'
Check that your DNS settings are correct. This below command will list all the services in your AKS cluster. Make sure that the kube-dns
service is running and healthy.
kubectl get svc --all-namespaces
Try updating Kubeconfig: az aks get-credentials --resource-group <resource-group> --name <cluster-name>
If your AKS cluster is public, DNS should resolve directly via Azure's public DNS. If it is private, ensure that you're using private DNS correctly, and that your local network has access to the Azure Private Link endpoints. If it returns true
, it means you're using a private cluster, which requires specific VNet and DNS configurations
az aks show --resource-group <resource-group> --name <cluster-name> --query "apiServerAccessProfile.enablePrivateCluster"
If you still find any difficulties, please let me know I would like to work closer on this issue.
Thank you.