Skip to content

Bug: Loki 3.6.5 Readiness Fails (503) When Accessing From Internal Container #21027

@irwinrex

Description

@irwinrex

Describe the bug

Loki 3.6.5 intermittently returns 503 on the /ready endpoint during startup when deployed in Kubernetes (single-binary mode with -target=all).

  • Pod starts successfully
  • No restarts
  • Readiness probe fails with HTTP 503
  • External access works
  • Internal access from within the Loki container fails

Readiness eventually succeeds, but by external container in same namespace


To Reproduce

  1. Started Loki docker.io/grafana/loki:3.6.5
    -config.file=/etc/loki/config/config.yaml
    -target=all

  2. (Promtail not required — readiness fails before ingestion)

  3. Access readiness endpoint:
    GET http://:3100/ready

Result:
HTTP 503

Kubernetes readiness probe:
http-get http://:http-metrics/ready
delay=15s timeout=1s period=10s

Event observed:
Warning Unhealthy Readiness probe failed: HTTP probe failed with statuscode: 503


Expected behavior

  • /ready should return 200 once Loki process is operational
  • Readiness should not return prolonged 503
  • Internal and external access should behave consistently

Environment:

  • Infrastructure: Kubernetes (StatefulSet, single-binary mode)
  • Deployment tool: Helm
  • Image: docker.io/grafana/loki:3.6.5
  • Storage: PVC (30Gi)

Screenshots, Promtail config, or terminal output

Pod event during failure:
Warning Unhealthy Readiness probe failed: HTTP probe failed with statuscode: 503

Pod eventually transitions to:
Ready: True
ContainersReady: True

Full kubectl describe pod output available upon request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomehing is not working as expected

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions