0
0
Kubernetesdevops~5 mins

DNS in Kubernetes (CoreDNS) - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is CoreDNS in Kubernetes?
CoreDNS is the default DNS server in Kubernetes. It helps services and pods find each other by translating service names into IP addresses.
Click to reveal answer
beginner
How does CoreDNS help pods communicate in Kubernetes?
CoreDNS resolves service names to IP addresses, so pods can use simple names instead of IPs to connect to other services.
Click to reveal answer
intermediate
Where is CoreDNS configured in a Kubernetes cluster?
CoreDNS runs as a Deployment in the kube-system namespace and is configured via a ConfigMap named 'coredns'.
Click to reveal answer
intermediate
What file does CoreDNS use to define DNS rules and behavior?
CoreDNS uses a ConfigMap that contains a Corefile. The Corefile defines how DNS queries are handled.
Click to reveal answer
beginner
What happens if CoreDNS is not running in a Kubernetes cluster?
Pods will not be able to resolve service names to IPs, causing communication failures between services.
Click to reveal answer
What is the main role of CoreDNS in Kubernetes?
AManage pod scheduling
BTranslate service names to IP addresses
CStore container images
DMonitor cluster health
Where does CoreDNS run inside a Kubernetes cluster?
AInside each pod
BOn the master node only
CAs a DaemonSet on all nodes
DIn the kube-system namespace as a Deployment
What is the name of the file that configures CoreDNS behavior?
ACorefile
BConfig.yaml
CDNS.conf
DServicefile
If CoreDNS stops working, what is the likely impact?
APods cannot resolve service names
BPods will stop running
CCluster nodes will reboot
DStorage volumes will be lost
How can you check the CoreDNS pods status?
Akubectl get nodes
Bkubectl get pods -n default
Ckubectl get pods -n kube-system -l k8s-app=kube-dns
Dkubectl describe service
Explain how CoreDNS helps pods find each other in Kubernetes.
Think about how computers use DNS to find websites.
You got /4 concepts.
    Describe what happens if CoreDNS is not functioning in a Kubernetes cluster.
    Consider what happens if you can't look up phone numbers.
    You got /4 concepts.