From 67c5034165036c99366d5b7ed586ce6aada9b5a8 Mon Sep 17 00:00:00 2001 From: Geoffrey Cline Date: Mon, 28 Mar 2022 12:27:33 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Qiming Teng --- .../administer-cluster/dns-debugging-resolution.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/en/docs/tasks/administer-cluster/dns-debugging-resolution.md b/content/en/docs/tasks/administer-cluster/dns-debugging-resolution.md index 2fb9a07a49..7dbe5f2f74 100644 --- a/content/en/docs/tasks/administer-cluster/dns-debugging-resolution.md +++ b/content/en/docs/tasks/administer-cluster/dns-debugging-resolution.md @@ -258,18 +258,18 @@ CoreDNS must be able to list {{< glossary_tooltip text="service" term_id="service" >}} and {{< glossary_tooltip text="endpoint" term_id="endpoint" >}} related resources to properly resolve service names. -Sample Error Message: +Sample error message: ``` 2022-03-18T07:12:15.699431183Z [INFO] 10.96.144.227:52299 - 3686 "A IN serverproxy.contoso.net.cluster.local. udp 52 false 512" SERVFAIL qr,aa,rd 145 0.000091221s ``` First, get the current ClusterRole of `system:coredns`: -``` +```shell kubectl describe clusterrole system:coredns -n kube-system ``` -Expected Output: +Expected output: ``` PolicyRule: Resources Non-Resource URLs Resource Names Verbs @@ -284,11 +284,11 @@ PolicyRule: If any permissions are missing, edit the ClusterRole to add them: -``` +```shell kubectl edit clusterrole system:coredns -n kube-system ``` -Example Insertion of EndpointSlices Permissions: +Example insertion of EndpointSlices permissions: ``` ... - apiGroups: