当我对此启动的服务器提出请求时:https ://gist.github.com/Rasarts/1180479de480d7e36d6d7aef08babe59#file-server
我得到正确的回应:
{
"args": {},
"headers": {
"Accept-Encoding": "gzip",
"Connection": "close",
"Host": "httpbin.org",
"User-Agent": "Go-http-client/1.1"
},
"origin": "",
"url": "https://httpbin.org/get"
}
但是当我在以这种方式创建的 minikube 上向该服务器发出请求时: https ://gist.github.com/Rasarts/1180479de480d7e36d6d7aef08babe59#file-serve-yaml
我得到错误:
ERROR: Get https://httpbin.org/get: EOF<nil>
如何从 kubernetes pod 发出 http 请求?