簡體   English   中英

k8s - pod 可以 ping 外部 ip,但不能 wget?

[英]k8s - pod can ping external ip, but cannot wget?

在 Fedora 32 上運行全新安裝的 microk8s 1.19,我能夠 ping 外部 IP 地址,但是當我嘗試 wget 時,我得到“沒有到主機的路由”(這是從 busybox pod 運行的命令的輸出):

/ # wget x.x.x.x
Connecting to x.x.x.x (x.x.x.x:80)
wget: can't connect to remote host (x.x.x.x): No route to host
/ # ping x.x.x.x
PING x.x.x.x (x.x.x.x): 56 data bytes
64 bytes from x.x.x.x: seq=0 ttl=127 time=1.209 ms
64 bytes from x.x.x.x: seq=1 ttl=127 time=0.765 ms

終於找到https://github.com/ubuntu/microk8s/issues/408

必須在與橋接接口關聯的防火牆區域中啟用偽裝,或者在我的情況下,我的以太網連接。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM