From bab127e094271192727c7f1627aa6935d680adae Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Wed, 16 Sep 2015 17:44:02 +0800 Subject: [PATCH] nslookup in different namespace Since skydns is created in namespace 'kube-system' and kubernetes service is created in namespace 'default', if busybox is created in namespace 'kube-system' then nslookup will work with 'kubernetes.default'. --- cluster/addons/dns/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/addons/dns/README.md b/cluster/addons/dns/README.md index 118c29dcc4..e82c1fe8d2 100644 --- a/cluster/addons/dns/README.md +++ b/cluster/addons/dns/README.md @@ -142,7 +142,7 @@ busybox 1/1 Running 0 ### 3 Validate DNS works Once that pod is running, you can exec nslookup in that environment: ``` -kubectl exec busybox -- nslookup kubernetes +kubectl exec busybox -- nslookup kubernetes.default ``` You should see something like: @@ -150,7 +150,7 @@ You should see something like: Server: 10.0.0.10 Address 1: 10.0.0.10 -Name: kubernetes +Name: kubernetes.default Address 1: 10.0.0.1 ```