Skip to content

Spring boot 2.78 > Readiness probe failed: HTTP probe failed with statuscode: 401 #46313

Closed as not planned
@cmonty14

Description

@cmonty14

Hi,
I deploy a pod in K8s based on image docker.io/flowable/flowable-ui:6.8.0.
This image includes Spring boot 2.78.

After starting the pod, I get this error:
Readiness probe failed: HTTP probe failed with statuscode: 401

I have no idea how to fix this issue.
Setting parameters in configmap manifest does not help:

  MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE: "health,info"
  MANAGEMENT_ENDPOINT_HEALTH_PROBES_ENABLED: "true"
  MANAGEMENT_ENDPOINT_HEALTH_SHOW_DETAILS: "never"
  MANAGEMENT_ENDPOINT_HEALTH_LIVENESSSTATE_ENABLED: "true"
  MANAGEMENT_ENDPOINT_HEALTH_READINESSSTATE_ENABLED: "true"
  MANAGEMENT_ENDPOINT_HEALTH_AUTHENTICATED: "false"

I understand that Spring Boot actuator endpoints (e.g., /actuator/health) generally require authentication.
But I deployed the pod once with MANAGEMENT_SERVER_PORT: "8081" and then readiness probe was successful. However I cannot reproduce this.

Can you please advise how to fix this issue?

THX

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.com

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions