Open EnterPrayz opened 5 months ago
Indeed, the liveness probe only works for the web service container. Can Kubernetes use the health check defined in the Docker container? That would allow us better flexibility in performing it. Presently it does mostly the same, see https://github.com/WeblateOrg/docker/issues/2392.
Kubernetes does not directly use the health checks defined in a Docker container image (like those specified in a Dockerfile using HEALTHCHECK). Instead, Kubernetes provides its own mechanisms for defining and managing health checks through the use of - Liveness/Readiness/Startup probes
@nijel , Hi! What do you think about such a solution to this problem — https://github.com/WeblateOrg/helm/pull/466
That is not really a solution, it removes the health check completely. But it's good as a workaround.
Describe the issue
I've split helm chart configuration to the as follow:
weblate-web.yaml
weblate-celery.yaml
But while kybernates try to check Readiness/Liveness probe healthz pod with
WEBLATE_SERVICE=celery-celery
, it always receiveIn this time while checking
WEBLATE_SERVICE=web
- response code 200.I know that i can use some like this in part of Probe configuration, instead of httpGet:
Unfortunately my flux server not support custom probe setup - only default
httpGet
Also i tried to use my own http server for pod with
WEBLATE_SERVICE=celery-celery
, that i run insidesettings-override.py
- but it's not clear way.I already tried
Steps to reproduce the behavior
WEBLATE_SERVICE: "celery-celery"
url{my_pod_ip}:8080/healthz/
Expected behavior
No response
Screenshots
No response
Exception traceback
No response
Additional context
No response