[英]Unable to ping any external IP from my pod in AKS
I've an AKS cluster running but I cannot ping any external IP from a "simple" container:我有一个正在运行的 AKS 集群,但我无法从“简单”容器中 ping 任何外部 IP:
> kubectl run -it --rm node --image=node:14.15.1-slim -- bash
root@node:/# apt update && apt -y install iputils-ping
root@node:/# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
The last "PING"-line stalls forever.最后的“PING”行永远停止。 Any idea what causes the problem?
知道是什么导致了这个问题吗? I already added a load balancer because I read that it helped for some people but it didn't solved my issue...
我已经添加了一个负载均衡器,因为我读到它对某些人有帮助,但它并没有解决我的问题......
Update更新
I can connect to any IP and the DNS also resolves.我可以连接到任何 IP,DNS 也可以解析。 So it's fine for the first time.
所以第一次还好。 But I'm very interested why I cannot get any response from the ping.
但我很感兴趣,为什么我无法从 ping 中得到任何响应。 I guess something is blocking the ICMP messages.
我猜有些东西阻止了 ICMP 消息。
using ping in bash without defining how many times it pings might be causing the stall, try:在 bash 中使用 ping 而未定义它 ping 的次数可能会导致停顿,请尝试:
ping 8.8.8.8 -c 3
to ping three times ping 三次
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.