activemq icon indicating copy to clipboard operation
activemq copied to clipboard

Helm chart livenessProbe fails due to authentication required

Open pantovad opened this issue 6 months ago • 3 comments

The provided ActiveMQ Helm chart livenessProbe fails with 401 as httpGet on /admin endpoint requires authentication that is not provided. Thus the Pod keep restarting. The chart from @kenliao94 uses tcpSocket method in livenessProbe same like with readinessProbe.

pantovad avatar May 11 '26 08:05 pantovad

I just encountered this issue. The problem is that the liveness probe is hard wired to use the httpGet type that cannot be changed because the helm values merging and the way the template is configured. The problem does not occur when authentication is disabled, which is also not that directly configurable, but the default behavior is auth on so it doesn't work out of the box. A new solution should allow to turn probes on and off. I also managed to do a workaround by providing a http authorization header with the correct value, which is the username and password from the broker config:

livenessProbe:
  httpGet:
    httpHeaders:
      - name: Authorization
        value: "Basic <base64 encode of 'admin:admin'>"

But this seems like too much effort just to get the chart working with default settings

gdezse avatar Jun 04 '26 15:06 gdezse

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment if you think it's still relevant.

github-actions[bot] avatar Aug 05 '26 02:08 github-actions[bot]

Reproduced on main with kind (Kubernetes 1.37, image 6.2.1): with default values the liveness probe gets a 401 from /admin/ and the broker restarts about every 70 seconds. The Authorization-header workaround above also fails on 6.2.1, because /admin/ answers 403 even with valid credentials.

I opened #2832 to switch the liveness probe to TCP on the OpenWire port, matching the startup and readiness probes. It also documents setting the default handler to null when overriding a probe in values.

(Written with Claude Code.)

geographybuff avatar Nov 10 '26 18:11 geographybuff