首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何强制apiserver代理在连接容器时使用HTTPS

如何强制apiserver代理在连接容器时使用HTTPS
EN

Stack Overflow用户
提问于 2016-09-09 19:22:31
回答 1查看 282关注 0票数 0

我试图通过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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-09-09 19:42:02

您可以在服务名称的前缀加上"https:“,可以识别以下格式:

代码语言:javascript
复制
# 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/...
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39418422

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档