. Advertisement .
..3..
. Advertisement .
..4..
I am trying to create a Helm chart for varnish to be deployed/run on Kubernetes cluster. I get the ”readiness probe failed http probe failed with statuscode 503” error while running the helm package which has varnish image from Docker community.
Readiness probe failed: HTTP probe failed with statuscode: 503
Liveness probe failed: HTTP probe failed with statuscode: 503
I don’t know why this error happens and how to solve it? Can someone help me?
The cause: If Kubernetes sends an
HTTP 503
error for either the readiness or the liveliness probes, your backend connection is probably broken.Those probes are not intended to test your HTTP flow from beginning to end. The sole purpose of the probes is to see if the service they are monitoring is responding.
That is why, when capturing requests that point to
/healthcheck
, you can simply return a synthetic HTTP response.Solution: You can fix it by using the VCL code: