Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker Kubernetes吊舱-HTTP内部不工作(curl)_Docker_Http_Kubernetes_Grafana - Fatal编程技术网

Docker Kubernetes吊舱-HTTP内部不工作(curl)

Docker Kubernetes吊舱-HTTP内部不工作(curl),docker,http,kubernetes,grafana,Docker,Http,Kubernetes,Grafana,当尝试卷曲时,它不起作用。但当我尝试时,我得到了一个答案 # HTTPS root@grafana-77798b4bf9-jhn2z:/usr/share/grafana# curl https://google.de <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>301 Moved&

当尝试卷曲时,它不起作用。但当我尝试时,我得到了一个答案

# HTTPS
root@grafana-77798b4bf9-jhn2z:/usr/share/grafana# curl https://google.de
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.de/">here</A>.
</BODY></HTML>

# HTTP
root@grafana-77798b4bf9-jhn2z:/usr/share/grafana# curl -v http://google.de
*   Trying 216.58.213.195:80...
* TCP_NODELAY set
*   Trying 2a00:1450:4005:803::2003:80...
* TCP_NODELAY set
* Immediate connect fail for 2a00:1450:4005:803::2003: Cannot assign requested address
*   Trying 2a00:1450:4005:803::2003:80...
* TCP_NODELAY set
* Immediate connect fail for 2a00:1450:4005:803::2003: Cannot assign requested address
*   Trying 2a00:1450:4005:803::2003:80...
* TCP_NODELAY set
* Immediate connect fail for 2a00:1450:4005:803::2003: Cannot assign requested address
^C

curl的输出是什么https://google.de -v
?也可以尝试
curlhttp://google.de -4
这里的行为非常可疑,从未见过类似的情况看起来https正在使用ipv4,http出于某种原因正在使用ipv6。我不知道为什么会发生这种情况,但可能您没有与ipv6地址的接口,因此出现了错误。是的,但HTTP也使用IPv4(带-4),但我超时了。我们在网络中禁用了IPv6。也许防火墙正在阻止端口80
Linux kubernetes-master 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
Linux kubernetes-slave 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1+deb9u1 (2020-06-07) x86_64 GNU/Linux