【 TiDB 使用环境】 /测试/ Poc
【 TiDB 版本】6.5.8, tioperator 1.5.3
【复现路径】直接使用TiOperator在K8S 1.23上部署
【遇到的问题:问题现象及影响】启动过程中,最开始nslookup可以工作,但discovery不通,后面网络丢失
【资源配置】进入到 TiDB Dashboard -集群信息 (Cluster Info) -主机(Hosts) 截图此页面
【附件:截图/日志/监控】
kubectl logs -f -n namespace basic-pd-2
Server: 10.96.0.10
Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local
nslookup domain basic-pd-2.basic-pd-peer.namespace.svc failed
Server: 10.96.0.10
Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local
Name: basic-pd-2.basic-pd-peer.namespace.svc
Address 1: 100.87.192.106
nslookup domain basic-pd-2.basic-pd-peer.namespace.svc.svc success
waiting for discovery service to return start args …
waiting for discovery service to return start args …
waiting for discovery service to return start args …
waiting for discovery service to return start args …
waiting for discovery service to return start args …
waiting for discovery service to return start args …
waiting for discovery service to return start args …
waiting for discovery service to return start args …
查看pd的pod地址是存在的:
kubectl get pods -Aowide | grep pd
namespace basic-pd-0 1/1 Running 0 48s 100.64.28.186 cluster-2
namespace basic-pd-1 1/1 Running 0 22s 100.66.32.43 cluster-3
namespace basic-pd-2 1/1 Running 0 80s 100.87.192.108 cluster
但是进入pod,查看IP地址为空:
/var/lib/pd # ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
/var/lib/pd # exit
结果查看calico网络接口,已经不存在了。 而正常的tidb和tikv,网络接口是正常额。