minor updates

pull/482/head
Mumshad 2019-03-20 17:44:09 +08:00
parent c61a841a71
commit 0d94436f03
1 changed files with 1 additions and 7 deletions

View File

@ -56,16 +56,10 @@ NAME READY STATUS RESTARTS AGE
busybox-bd8fb7cbd-vflm9 1/1 Running 0 10s 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: 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 > output