您指定了正确的主机或端口吗? Kubernetes上的错误 [英] did you specify the right host or port? error on Kubernetes

查看:71
本文介绍了您指定了正确的主机或端口吗? Kubernetes上的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已遵循 http://kubernetes.io/docs/hellonode/上的helloword教程.

I have followed the helloword tutorial on http://kubernetes.io/docs/hellonode/.

当我跑步时:

kubectl run hello-node --image=gcr.io/PROJECT_ID/hello-node:v1 --port=8080

我得到: 与服务器localhost:8080的连接被拒绝-您是否指定了正确的主机或端口?

I get: The connection to the server localhost:8080 was refused - did you specify the right host or port?

为什么命令行尝试连接到本地主机?

Why do the command line tries to connect to localhost?

推荐答案

只要确保遵循以下内容: https://cloud.google.com/container-engine/docs/before -您开始 http://kubernetes.io/docs/hellonode/

Just make sure to follow: https://cloud.google.com/container-engine/docs/before-you-begin before http://kubernetes.io/docs/hellonode/

这篇关于您指定了正确的主机或端口吗? Kubernetes上的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆