Skip to content

No response from health or readiness probe or root #10

@theist

Description

@theist

I managed to install this on a local, RBAC enabled K3s but it seems that the health and the readiness probes get a 404 and the container gets CrashLooped. Also I tried to start the container locally with

docker run --rm -ti -v /home/user/.kube:/root/.kube -p 80:8080 docker.io/pavelzagalsky/jobnik:latest

But also I get a 404 there or a 500 if I try to list jobs, which is normal because it is not living in a kube cluster.

k3s-local:default ✔ 20:59:29 $ docker run --rm -ti  -v /home/user/.kube:/root/.kube -p 7777:8080 docker.io/pavelzagalsky/jobnik:latest
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /api/healthz              --> k8s-job-manager/api.RegisterHandlers.func1 (4 handlers)
[GIN-debug] GET    /api/jobs                 --> k8s-job-manager/api.RegisterHandlers.func2 (4 handlers)
[GIN-debug] POST   /api/job                  --> k8s-job-manager/api.RegisterHandlers.func3 (4 handlers)
[GIN-debug] GET    /api/job/logs             --> k8s-job-manager/api.RegisterHandlers.func4 (4 handlers)
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on :8080
[GIN] 2025/11/11 - 20:04:32 | 404 |       2.706µs |      172.17.0.1 | GET      "/"
[GIN] 2025/11/11 - 20:04:44 | 404 |       3.217µs |      172.17.0.1 | GET      "/readiness"
[GIN] 2025/11/11 - 20:04:47 | 404 |       3.077µs |      172.17.0.1 | GET      "/readiness/"
[GIN] 2025/11/11 - 20:04:54 | 404 |       3.278µs |      172.17.0.1 | GET      "/healthz"
[GIN] 2025/11/11 - 20:04:57 | 404 |       2.544µs |      172.17.0.1 | GET      "/healthz/"
[GIN] 2025/11/11 - 20:05:06 | 500 |     663.133µs |      172.17.0.1 | GET      "/api/jobs"
[GIN] 2025/11/11 - 20:05:06 | 404 |        2.95µs |      172.17.0.1 | GET      "/favicon.ico"

I've inspected the contents of the container but it seems that UI is not there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions