我试图通过skydns etcd服务器连接到apiserver proxy,使用下面的doc http://kubernetes.io/docs/user-guide/accessing-the-cluster/#manually-constructing-apiserver-proxy-urls命令
curl
但是有错误
错误:“拨号tcp 10.254.63.2:2379: i/o超时” 试图联系:'http://10.254.63.2:2379/v2/keys‘
看起来它试图连接到http而不是https。
医生说,
对目标的代理可以使用HTTP或HTTPS,由代理使用可用信息选择
它使用什么信息?如何强制使用https
发布于 2016-09-09 19:42:02
您可以在服务名称的前缀加上"https:“,可以识别以下格式:
# Proxies to the first port in the service, using http
https://<master>/api/v1/namespaces/myns/services/myservice/proxy/...
# Proxies to the specified port in the service, using http
https://<master>/api/v1/namespaces/myns/services/myservice:myport/proxy/...
# Proxies to the specified port, using https
https://<master>/api/v1/namespaces/myns/services/https:myservice:myport/proxy/...https://stackoverflow.com/questions/39418422
复制相似问题