-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I’m trying to run Kellnr (Installed Chart version: 4.2.0 and Installed Kellnr version: 5.8.0)
with sparse HTTP mode enabled on Kubernetes via the Helm chart. Despite configuring the environment variables and Helm values as documented, the HTTP endpoint always serves the web UI HTML instead of the expected Git-style index JSON.
- Helm install/upgrade with sparse HTTP and Git index disabled
helm upgrade --install kellnr kellnr/kellnr -n kellnr -f values.yaml \
--set kellnr.registry.gitIndex.enabled=false \
--set kellnr.registry.sparse.enabled=true \
--set kellnr.registry.sparse.http.baseUrl=http://127.0.0.1:8000 \
--set kellnr.registry.authRequired=false \
--set kellnr.securityContext.runAsUser=0 \
--set kellnr.securityContext.fsGroup=0
- Verify Environment variables in the pod:
kubectl exec -it deploy/kellnr -n kellnr -- env | grep SPARSE
KELLNR_REGISTRY__SPARSE__ENABLED=true
KELLNR_REGISTRY__SPARSE__HTTP__BASE_URL=http://127.0.0.1:8000
- Accessing sparse HTTP endpoint inside the pod:
kubectl exec -it deploy/kellnr -n kellnr -- curl -v http://127.0.0.1:8000/index/info/refs
Results into:
<!DOCTYPE html>
<html lang="en">
<head>…</head>
<body>
<div id="app"></div>
</body>
</html>
Instead of a Git-Style index
Expected behavior:
/index/info/refs should return the Git-style index JSON required by Cargo clients, not the HTML for the web UI.
Additional notes:
- Using Helm chart version 4.2.0 and Kellnr 5.8.0
- Tried both 127.0.0.1 and cluster DNS (kellnr.kellnr.svc.cluster.local) for the baseUrl
- Git index disabled
- Sparse mode enabled
- Security context set to runAsUser=0 and fsGroup=0
Metadata
Metadata
Assignees
Labels
No labels