Certified Kubernetes Administrator (CKA) · Section 3 · 20% of the exam
Understand and use CoreDNS
One of the objectives of the Certified Kubernetes Administrator (CKA) exam, in the section “Services and Networking”. Here is what it covers, the points to remember and a question to try.
What it covers
CoreDNS is the cluster DNS server that gives Services and Pods names. Know the name formats, how Pod resolver settings work, and how to read and edit the Corefile in the coredns ConfigMap.
Points to remember
- CoreDNS runs as the coredns Deployment in kube-system behind the Service named kube-dns
- Service name format: service.namespace.svc.cluster.local
- Headless Services return Pod IPs; StatefulSet Pods get pod.service.namespace.svc names
- Pods get search domains and ndots:5; short names only resolve within the Pod's namespace
- dnsPolicy default is ClusterFirst; Default means node DNS; None needs dnsConfig
Try a question
Where is the CoreDNS configuration (the Corefile) stored in a kubeadm cluster?
- AIn
/etc/kubernetes/manifests/coredns.yamlon the control plane node - BIn the Secret
dns-configindefault - CIn the kubelet configuration file
- DIn the ConfigMap
corednsin namespacekube-system
Show the answer
D. The Corefile is mounted from the coredns ConfigMap. The reload plugin picks up changes automatically.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson CoreDNS and Cluster DNS teaches this objective (about 40 minutes), and 15 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.