From 0d94436f035504762741c22f87328b5b3eff2e0d Mon Sep 17 00:00:00 2001 From: Mumshad Date: Wed, 20 Mar 2019 17:44:09 +0800 Subject: [PATCH] minor updates --- docs/13-dns-addon.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/13-dns-addon.md b/docs/13-dns-addon.md index c978d0b..9f90120 100644 --- a/docs/13-dns-addon.md +++ b/docs/13-dns-addon.md @@ -56,16 +56,10 @@ NAME READY STATUS RESTARTS AGE busybox-bd8fb7cbd-vflm9 1/1 Running 0 10s ``` -Retrieve the full name of the `busybox` pod: - -``` -POD_NAME=$(kubectl get pods -l run=busybox -o jsonpath="{.items[0].metadata.name}") -``` - Execute a DNS lookup for the `kubernetes` service inside the `busybox` pod: ``` -kubectl exec -ti $POD_NAME -- nslookup kubernetes +kubectl exec -ti busybox -- nslookup kubernetes ``` > output