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
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!!!