kubernetes nodeport公开服务错误

时间:2018-01-29 12:02:04

标签: mongodb kubernetes

我在mongodb中公开了服务nodePort但我无法访问该链接。连接已重置错误:

$ curl http://192.168.99.102:32292
curl: (56) Recv failure: Connection was reset

$ kubectl.exe get services
NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)           AGE
kubernetes   ClusterIP   10.0.0.1     <none>        443/TCP           4d
mongodb      NodePort    10.0.0.213   <none>        27017:32292/TCP   7m

1 个答案:

答案 0 :(得分:-1)

您无法通过HTTP连接到端口27017 试试这个telnet 192.168.99.102 32292