kubernetes配置nodePort没有生效,但是配置hostPort可以访问

shandianxiawoshan 2017-09-07 09:28:24
kubectl describe svc/promgr

Name: promgr
Namespace: default
Labels: app=promgr
Annotations: <none>
Selector: app=promgr
Type: NodePort
IP: 11.1.1.213
External IPs: 101.37.*.*
Port: <unset> 10801/TCP
NodePort: <unset> 30763/TCP
Endpoints: 192.168.43.2:10801
Session Affinity: None
Events: <none>
请问为什么配置完nodePort使用101.37.*.*:30763无法访问
...全文
2797 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
为不为 2017-09-07
  • 打赏
  • 举报
回复

1,162

社区成员

发帖
与我相关
我的任务
社区描述
Docker是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的Linux 机器上,也可以实现虚拟化。
社区管理员
  • Docker
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧