我在遠程裸機實例上跟隨this fission tutorial。當我運行curl $ FISSION_URL(http://192.168.42.152:31313)它不會返回。我跑了以下命令:無法與來自主機的minikube羣集建立連接
- sudo lsof -i | grep 192.168.42.152。
ntpd 2860 ntp 32u IPv4 55241 0t0 UDP 192.168.42.1:ntp
dnsmasq 3392 libvirt-dnsmasq 5u IPv4 33870 0t0 UDP 192.168.42.1:domain
dnsmasq 3392 libvirt-dnsmasq 6u IPv4 33871 0t0 TCP 192.168.42.1:domain (LISTEN)
- 捲曲-vvv $ FISSION_URL。
須藤的iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT udp -- anywhere anywhere udp dpt:domain ACCEPT tcp -- anywhere anywhere tcp dpt:domain ACCEPT udp -- anywhere anywhere udp dpt:bootps ACCEPT tcp -- anywhere anywhere tcp dpt:bootps ACCEPT udp -- anywhere anywhere udp dpt:domain ACCEPT tcp -- anywhere anywhere tcp dpt:domain ACCEPT udp -- anywhere anywhere udp dpt:bootps ACCEPT tcp -- anywhere anywhere tcp dpt:bootps Chain FORWARD (policy ACCEPT) target prot opt source destination DOCKER-ISOLATION all -- anywhere anywhere DOCKER all -- anywhere anywhere ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED ACCEPT all -- 192.168.122.0/24 anywhere ACCEPT all -- anywhere anywhere REJECT all -- anywhere anywhere reject-with icmp-port-unreachable REJECT all -- anywhere anywhere reject-with icmp-port-unreachable ACCEPT all -- anywhere anywhere REJECT all -- anywhere anywhere reject-with icmp-port-unreachable REJECT all -- anywhere anywhere reject-with icmp-port-unreachable Chain OUTPUT (policy ACCEPT) target prot opt source destination ACCEPT udp -- anywhere anywhere udp dpt:bootpc ACCEPT udp -- anywhere anywhere udp dpt:bootpc Chain DOCKER (1 references) target prot opt source destination Chain DOCKER-ISOLATION (1 references) target prot opt source destination RETURN all -- anywhere anywhere
Rebuilt URL to: http://192.168.42.152:31313/
Trying 192.168.42.152...
Connected to 192.168.42.152 (192.168.42.152) port 31313 (#0)
GET/HTTP/1.1
Host: 192.168.42.152:31313
User-Agent: curl/7.47.0
Accept: /
我在我應該如何與調試此繼續進行不確定。我相信主機能夠與guest(minikube IP)連接,但無法檢索數據。任何人都可以指導我如何解決這個問題?
感謝您的回覆。當我運行'kubectl獲取豆莢寬'我看到我所有的豆莢都在'ContainerCreating'狀態。我檢查了'kubectl get events',發現這個錯誤:'Warning \t FailedSync \t同步窗格時出錯,跳過:ImagePullBackOff:「Back-off pulling image \」無法爲「POD」啓動「StartContainer」gcr.io/google_containers/pause -amd64:3.0 \「」。我發現[this](https://github.com/kubernetes/minikube/issues/322)有類似的問題。你能指導我在哪裏可以爲代理設置'--docker-env標誌'嗎?我無法理解修復。 謝謝! –
你可以在這個[issue]中找到代理的幫助(https://github.com/kubernetes/minikube/issues/530#issuecomment-250801735) – surajd
謝謝!但是當我運行env | grep -i代理它不會返回任何東西。所以我不認爲代理是這個原因。 我注意到,當我運行kubectl獲取端點時,它顯示我沒有IP被分配給任何一個pod。這是正常的嗎?我無法找到關於此在線的任何內容。 –