Complete the code to check the CoreDNS pods in the kube-system namespace.
kubectl get pods -n [1] -l k8s-app=kube-dnsThe CoreDNS pods run in the kube-system namespace, so you must specify it to list them.
Complete the command to view the CoreDNS ConfigMap in the kube-system namespace.
kubectl get configmap [1] -n kube-system -o yamlThe CoreDNS ConfigMap is named coredns in the kube-system namespace.
Fix the error in the CoreDNS ConfigMap snippet to correctly forward DNS queries to 8.8.8.8.
forward . [1]The forward plugin requires the IP and port, so 8.8.8.8:53 is correct.
Fill both blanks to create a CoreDNS stub domain forwarding example for example.com to 10.0.0.1.
example.com:53 { [1] . [2] }
The forward plugin is used to forward queries for example.com to the IP 10.0.0.1.
Fill all three blanks to create a CoreDNS hosts plugin block mapping example.com to 10.0.0.2 with TTL 30.
hosts {
[1] [2] [3]
fallthrough
}The hosts plugin maps example.com to 10.0.0.2 with a TTL of 30 seconds.