cancel
Showing results for 
Search instead for 
Did you mean: 
gjazz
Cadet
Cadet
  • 2,508 Views

Openshiift 3.9 curl: (7) Failed connect <route> Connection refused

Hello

Plz I need  your  help

Im running  in to issue ,  I've create a project called Salut,  expose the service bonjour

[root@master network-scripts]# oc get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
bonjour ClusterIP 172.30.242.91 <none> 8080/TCP,8443/TCP 23h
[root@master network-scripts]# oc get routes
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
bonjour bonjour-salut.apps.fok.geonet bonjour 8080-tcp None
[root@master network-scripts]#

I can  curl  http://172.30.242.91:8080

I cannot  curl  the  svc/route  bonjour-salut.apps.fok.geonet

[root@master network-scripts]#
[root@master network-scripts]# curl http://bonjour-salut.apps.fok.geonet:8080
curl: (7) Failed connect to bonjour-salut.apps.fok.geonet:8080; Connection refused
[root@master network-scripts]#

DNS wildcard is  configured on my  home  DNS.

Can  you  please help  on  this?

Labels (1)
1 Reply
Lars
Flight Engineer Flight Engineer
Flight Engineer
  • 2,494 Views

for the service run 'curl http://bonjour.salut.svc.cluster.local:8080', but take care run this from a machine inside of the cluster! (dig bonjour.salut.svc.cluster.local should give you 172.30.242.91)

for the route ... there's a connection refused! Check DNS (dig bonjour-salut.apps.fok.geonet) it should give you the ip of your wildcard loadbalancer!

Join the discussion
You must log in to join this conversation.