fix(fleet): serve HTTP, not ZAP

zip.Listen picks its transport from the address scheme, and a bare ":8000"
means ZAP. The dashboard and the kubelet both speak HTTP, so the readiness
probe's "GET " arrived as a ZAP frame header — frame size 1195725856, which is
the ASCII — and the pod never went Ready. The address now carries its scheme.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-07-27 19:36:37 -07:00
co-authored by Hanzo Dev
parent dee76a9e38
commit 613ca999c0
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -32,9 +32,11 @@ func main() {
}
app := newApp(log, &fleet.Collector{Cluster: cluster, Prober: fleet.NewRPC(), Markets: fleet.NewGraph()})
// The scheme picks the transport: a bare address would serve ZAP, and the
// dashboard and the kubelet both speak HTTP.
addr := os.Getenv("FLEET_ADDR")
if addr == "" {
addr = ":8000"
addr = "http://:8000"
}
log.Info("lux fleet listening", "addr", addr)
if err := app.Listen(addr); err != nil {
+1 -1
View File
@@ -75,7 +75,7 @@ spec:
- name: lux-fleet
# Built by hanzo.yml from Dockerfile.fleet. Pinned, so a rollout is
# a deliberate act.
image: ghcr.io/hanzoai/bootnode:fleet-v1.0.0
image: ghcr.io/hanzoai/bootnode:fleet-c394739
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8000