My CoreDNS pod get red status and show this error:
Readiness probe failed: Get http://172.30.224.3:8080/health: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
now I copy the url to request from k8s's host:
[root@ops001 work]# curl http://172.30.224.3:8080/health
OK
This is my probe config:
"readinessProbe": {
"httpGet": {
"path": "/health",
"port": 8080,
"scheme": "HTTP"
},
"timeoutSeconds": 1,
"periodSeconds": 10,
"successThreshold": 1,
"failureThreshold": 3
}
The question is: why the server return successs and kubernetes dashboard give error tips and not refresh?
This is the command output:
$ kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
coredns-df554df8-76lrw 1/1 Running 1 29h
kubernetes-dashboard-6466b68b-z6z78 1/1 Running 0 16d
traefik-ingress-controller-hx4xd 1/1 Running 0 29d