hello云胜

技术与生活

0%

k8s环境中dns问题排查

问题:

1
2
3
4
5
6
7
8
9
10
11
[root@t-paas-k8s-0-master-0 test]# kubectl run -i --tty --image harbor-test.xxx.net/base/busybox:1.32 dns-test --restart=Never --rm /bin/sh
If you don't see a command prompt, try pressing enter.

/ # nslookup web-0.nginx
Server: 169.254.25.10
Address: 169.254.25.10:53

** server can't find web-0.nginx: NXDOMAIN

*** Can't find web-0.nginx: No answer