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:

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

and regularly, the pod is in CrashLoopBackOff state:

usercp@cpnode:~/ingress-nginx$ k get po -o wide | grep ingress
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

Categories

Upcoming Training