Welcome to the Linux Foundation Forum!

[Ingress] curl: connection refused

Hello,
After applying the linkerd injection (Lab 11.2, item 11), curl gets a "connection refused" on the service Ip, but not on the pod Ip:

  1. usercp@cpnode:~/ingress-nginx$ kubectl get svc | grep ingress
  2. myingress-ingress-nginx-controller LoadBalancer 10.108.235.235 <pending> 80:31860/TCP,443:32260/TCP 39m
  3. myingress-ingress-nginx-controller-admission ClusterIP 10.105.96.191 <none> 443/TCP 39m
  4. usercp@cpnode:~/ingress-nginx$ curl -H "Host: www.external.com" http://10.108.235.235
  5. curl: (7) Failed to connect to 10.108.235.235 port 80: Connection refused
  6. usercp@cpnode:~/ingress-nginx$ k get po -o wide | grep ingress
  7. myingress-ingress-nginx-controller-qmdt6 1/2 Running 7 (52s ago) 9m33s 192.168.0.112 wnode <none> <none>
  8. usercp@cpnode:~/ingress-nginx$ curl -H "Host: www.external.com" http://192.168.0.74
  9. <!DOCTYPE html>
  10. <html>
  11. <head>
  12. <title>Welcome to nginx!</title>
  13. ...

and regularly, the pod is in CrashLoopBackOff state:

  1. usercp@cpnode:~/ingress-nginx$ k get po -o wide | grep ingress
  2. myingress-ingress-nginx-controller-qmdt6 1/2 CrashLoopBackOff 7 (2m12s ago) 11m 192.168.0.112 wnode <none> <none>

It seems it happened too on the nginx-one deployment in Lab 11.1, but after deleting and restarting the deployment it went well

Best Answer

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training