我使用kubectl运行:
kubectl run hello-node --image=gcr.io/PROJECT_ID/hello-node:v1 --port=8080
报错:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
为什么命令行会尝试连接到localhost?
我使用kubectl运行:
kubectl run hello-node --image=gcr.io/PROJECT_ID/hello-node:v1 --port=8080
报错:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
为什么命令行会尝试连接到localhost?
你的kubeconfig不对。要自动生成它,运行:
这样。
你的答案