tcp connection works from out of node while readinessProbe fails

11/17/2019

I have an apache pod with 80 port exposed.

It could be accessed from out of the node.

kubectl port-forward svc/apache-service 8081:80
curl -I localhost:8081

...
200 OK

But Readiness probe fails.

Readiness probe failed: dial tcp 192.168.6.108:80: i/o timeout

I don't know why this is happening.

-- Wang Shuang
kubernetes

1 Answer

11/19/2019

problem solved. It was because the coredns was broken.

-- Wang Shuang
Source: StackOverflow