Error I got: Readiness probe failed: Get “http://ip:port/”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Readiness probe failed: Get “http://ip:port/”: dial tcp ip:port: i/o timeout (Client.Timeout exceeded while awaiting headers)
This error I am getting in the error logs and I checked the pods in the workloads, and it seems pods getting restarted again and again but my application is working fine.
My only concern is that if everything is fine then my GCP creates these logs and it creates in every minutes so this affects my project costing.
If anyone has any observations, please share it with me.
What might solve this issue is increasing the periodSeconds or timeoutSeconds to give the application a longer window of time to respond. More information about how you can adjust these parameters and what they do can be found here. You might also want to check more about health checks with readiness and liveness probes here.