Repository navigation
Closed
Description
/area networking
/kind bug
From my current experience, no matter what gRPC service you deploy, even including the sample grpc-ping-go app, you'll see at least one failed health check in the pod.
Despite the app is totally fine, it fails one HTTP health check (%90 of the time), which is GET /health on :8082 (queue-proxy container):
$ kubectl describe pod [...]
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 7s default-scheduler Successfully assigned default/productcatalogservice-dsvgk-deployment-77b69b669f-v2rjm to gke-kn-hipstershop-default-pool-dd20ed91-nd2x
Normal Pulled 6s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Container image "docker.io/istio/proxy_init:1.0.2" already present on machine
Normal Created 6s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Created container
Normal Started 6s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Started container
Normal Pulled 4s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Container image "gcr.io/knative-releases/github.com/knative/serving/cmd/queue@sha256:e19ca17d2b729904d2662a30b6c5c27cf4b62fd64baef2da4125525a4f9346e5" already present on machine
Normal Created 4s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Created container
Normal Started 4s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Started container
Normal Pulled 4s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Container image "gcr.io/google-samples/microservices-demo/productcatalogservice@sha256:1aa051838dd0de9be25321bdc42cb3b4f247a01642cfd75b6ae866182495c531" already present on machine
Normal Created 4s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Created container
Normal Started 4s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Started container
Normal Pulled 4s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Container image "docker.io/istio/proxyv2:1.0.2" already present on machine
Normal Created 4s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Created container
Normal Started 4s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Started container
Warning Unhealthy 3s kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x Readiness probe failed: Get http://10.36.1.43:8022/health: dial tcp 10.36.1.43:8022: connect: connection refused
I think it's a timing/ordering issue ––but I think it's kinda distracting from actual failures about my app. I spent a long time trying to understand what is /health and why is it querying :8022. It's not immediately obvious to new users.
Activity
tanzeeb commentedon Apr 2, 2019
/assign
Add initialDelaySeconds=2 to queue-proxy readiness probe
Add initialDelaySeconds=2 to queue-proxy readiness probe
tanzeeb commentedon Apr 23, 2019
Not gRPC specific, can be reproduced on all services. K8s readiness probe checks before the queue-proxy health handler is started.
tanzeeb commentedon Apr 23, 2019
Update: We may want to leave this unfixed, see thread in #3869
mattmoor commentedon May 8, 2019
A possible solution to this is to use an exec probe in the queue-proxy to probe itself, which can hang.
IIRC this has potential issues checking for mesh readiness, but I'm mulling a possible solution involving the downward API.
mattmoor commentedon May 8, 2019
tl;dr I think that we should probably find a way to make exec probes in the queue-proxy work, and block until they get what they want.
mattmoor commentedon May 8, 2019
IDK that we need the downward API other than to workaround Istio, and we hopefully no longer need to workaround istio, which IIUC has its own readiness probes.
mattmoor commentedon Jun 12, 2019
/assign @joshrider
I believe the issue assigned to Josh should address this.