K8s livenessProbe and readinessProbe for worker pod

Is there any recommended way to set up livenessProbe and readinessProbe for worker pods? Worker is not responding to http probes, port 5678 is closed.

Hi @L_S, welcome to the community!

You would need to set the QUEUE_HEALTH_CHECK_ACTIVE environment variable to enable the /healthz endpoint.

See QUEUE_HEALTH_CHECK_ACTIVE env var and use the /healthz endpoint to check

Thank you, @MutedJam and @pemontto. I missed it out in docs. It is working like a charm!

Containers:
  n8n-worker:
    Container ID:  docker://ccb40f7df19fc03631f4ed26bad92563d2a9e49544276eae29f1c8e9c3c81ae6
    Image:         n8nio/n8n
    Image ID:      docker-pullable://n8nio/n8n@sha256:46482af570333c5110225daebfae850f4591764ace4428433975ee6223a36033
    Port:          5678/TCP
    Host Port:     0/TCP
    Command:
      n8n
      worker
    State:          Running
      Started:      Tue, 25 Oct 2022 09:17:06 +0200
    Ready:          True
    Restart Count:  0
    Liveness:       http-get http://:5678/healthz delay=0s timeout=1s period=10s #success=1 #failure=3
    Readiness:      http-get http://:5678/healthz delay=0s timeout=1s period=10s #success=1 #failure=3

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.