Difference between revisions of "Dnsutils"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | [[apt install dnsutils]] | ||
+ | |||
kubectl run -i -t dnsutils --image=tutum/dnsutils -- bash | kubectl run -i -t dnsutils --image=tutum/dnsutils -- bash | ||
Line 4: | Line 7: | ||
root@dnsutils:/# | root@dnsutils:/# | ||
+ | |||
+ | root@dnsutils:/# nslookup redis-master.default | ||
+ | Server: 172.20.0.10 | ||
+ | Address: 172.20.0.10#53 | ||
+ | |||
+ | Name: redis-master.default.svc.cluster.local | ||
+ | Address: 172.20.80.83 | ||
Line 11: | Line 21: | ||
Failed to load logs: container "dnsutils" in pod "dnsutils" is waiting to start: [[trying and failing to pull image]] | Failed to load logs: container "dnsutils" in pod "dnsutils" is waiting to start: [[trying and failing to pull image]] | ||
Reason: BadRequest (400) | Reason: BadRequest (400) | ||
+ | |||
+ | == See also == | ||
+ | * {{kubectl exec}} | ||
+ | * {{kubectl}} | ||
+ | |||
+ | |||
+ | |||
+ | [[Category:Kubernetes]] | ||
+ | [[Category:CKAD]] |
Latest revision as of 13:16, 22 May 2024
apt install dnsutils
kubectl run -i -t dnsutils --image=tutum/dnsutils -- bash If you don't see a command prompt, try pressing enter. root@dnsutils:/#
root@dnsutils:/# nslookup redis-master.default Server: 172.20.0.10 Address: 172.20.0.10#53 Name: redis-master.default.svc.cluster.local Address: 172.20.80.83
kubectl exec -i -t dnsutils -- nslookup redis-master.default Error from server (NotFound): pods "dnsutils" not found
Failed to load logs: container "dnsutils" in pod "dnsutils" is waiting to start: trying and failing to pull image Reason: BadRequest (400)
See also[edit]
kubectl exec, kubectl exec -it
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io
Advertising: