did you specify the right host or port? error on Kubernetes

后端 未结 19 1908
北恋
北恋 2020-12-13 12:12

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

When I run:

kubectl run hello-node --image=gcr.io/PROJECT_ID/hello-node         


        
19条回答
  •  长情又很酷
    2020-12-13 12:34

    Reproduce the same error when doing a tutorial from Udacity called Scalable Microservices with Kubernetes https://classroom.udacity.com/courses/ud615, at the point of Using Kubernetes, Part 3 of Lesson.

    Launch a Single Instance:

    kubectl run nginx --image=nginx:1.10.0

    Error:

    Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

    How I resolved the Error:

    Login to Google Cloud Platform

    Navigate to Container Engine Google Cloud Platform, Container Engine

    Click CONNECT on Cluster

    Use login Credentials to access Cluster [NAME] in your Teminal

    Proceeded With Work!!!

提交回复
热议问题