Skip to main content

How to setup route? wget: can't connect to remote host ( No route to host [Resolved]


kubectl run -i -t load-generator --image=busybox /bin/sh

From my shell,I am trying

/ # wget http://wordpress.default.svc.cluster.local
Connecting to wordpress.default.svc.cluster.local (
wget: can't connect to remote host ( No route to host

These are my kubernetes service on premise

NAME                TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)          AGE     SELECTOR
hello-node          LoadBalancer        8080:31321/TCP   3d21h   app=hello-node
kubernetes          ClusterIP                443/TCP          4d      
tomcat-deployment   LoadBalancer         8080:32688/TCP   3d16h   app=tomcat
wordpress           NodePort             80:31262/TCP     2d      app=wordpress,tier=frontend
wordpress-mysql     ClusterIP      None                     3306/TCP         2d      app=wordpress,tier=mysql

Also wget works for google

Connecting to (
Connecting to (

How to connect to my node?

Question Credit: MikiBelavista
Question Reference
Asked March 15, 2019
Posted Under: Network
1 Answers


curl -v $(kubectl get ep | grep kubernetes|awk '{print $2}'|cut -d ":" -f1):31262

It should return thmthng like this

Rebuilt URL to:
*   Trying
* Connected to ( port 32144 (#0)

If it won't work, check your end points kubectl get ep -o wide

credit: A_Suh
Answered March 15, 2019
Your Answer