mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-09-30 20:46:32 +00:00
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:
+3
-1
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user