Repository navigation
Conversation
fleet.enabled deploys logfire-opamp and logfire-fleet-control, routes the /v1/opamp WebSocket to logfire-opamp through logfire-service, generates the shared transport token, and turns on the backend and auth Fleet routes with the OpAMP URL agents connect to. In-cluster TLS covers both workloads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RQmH295pyWtNXQMA8MmL6w
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RQmH295pyWtNXQMA8MmL6w
With existingSecret enabled, the Fleet pods need logfire-fleet-transport-token in that Secret. Add it in the PR workflow and in the Kind preparation script, so a run with fleet.enabled does not stop in CreateContainerConfigError. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RQmH295pyWtNXQMA8MmL6w
…ions open - Add logfire-opamp and logfire-fleet-control to the tiny, small and standard sizing presets (large inherits standard). logfire-opamp runs a fixed count, because a scale-down closes the stopped pod's sockets; fleet-control autoscales on CPU from two pods (one on tiny). - Set KEEP_ALIVE_TIMEOUT=620 on logfire-fleet-control, as the hosted deployment does. logfire-opamp keeps idle connections for up to 90 s, so the server's 5 s default lets a batch hit a connection the server is closing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RQmH295pyWtNXQMA8MmL6w
Main pins platform v2026-11-18.01 (04a0335e), the first release that publishes logfire-opamp and logfire-fleet-control-prod to the public registries, so this branch needs no appVersion change. - Chart version 0.15.4-rc.5, the next pre-release after main's rc.4. - Fleet preset entries follow main's rule for light services: memory requests, no memory limit. - ci-values turns fleet.enabled on, so the upgrade and Istio suites install Fleet, and the route tests check /v1/opamp reaches logfire-opamp (400 to a plain GET, 401 with a Bearer challenge to an upgrade without a credential). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RQmH295pyWtNXQMA8MmL6w
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Bill · project thread
Summary
Self-hosted Logfire can now run Fleet, which manages OpenTelemetry Collectors, the Logfire SDKs and the Kubernetes Operator over OpAMP. It is off by default and turned on with
fleet.enabled: true.logfire-opamp(the OpAMP server, imagelogfire-opamp) andlogfire-fleet-control(agent state in thecruddatabase, imagelogfire-fleet-control-prod). Each has the usual per-workload values: replicas, resources, autoscaling, scheduling, env and securityContext.small,standardandlargerun twologfire-opamppods and autoscalelogfire-fleet-controlfrom two;tinyruns one of each.logfire-opamphas a fixed replica count, because a scale-down closes the stopped pod's agent sockets.logfire-service(HAProxy) sends exactly/v1/opamptologfire-opamp, ahead of the backend's/v1/catch-all. The backend usesleastconnand a one-hourtimeout tunnelfor the WebSocket. Its health check goes to the plain admin port, which the probes use as well.logfire-backendgetsFLEET_MANAGEMENT_ENABLEDandFLEET_OPAMP_URL, which turns on the Fleet pages, API and enrollment.logfire-backend-authgetsFLEET_MANAGEMENT_ENABLED, which enables the routes the OpAMP server resolves agent credentials against.wss://<primary hostname>/v1/opamp, orws://when public TLS is off.fleet.opampUrloverrides it, and validation rejects any path other than/v1/opamp.logfire-fleet-transport-tokenSecret carries the bearerlogfire-opampsends tologfire-fleet-control. It is read back on upgrade. UnderexistingSecretit is a key in that Secret instead.logfire-opampthen serves its public listener oninClusterTls.httpsPortand verifies auth and Fleet control against the in-cluster CA. With in-cluster TLS off, or aws://public URL, the chart setsOPAMP_ALLOW_INSECURE_AUTH, because otherwise the server refuses plain HTTP.crudschema thatlogfire-backend-migrationsalready creates.Upgrade notes
No action is needed while
fleet.enabledis false, because nothing new renders.To enable Fleet:
logfire-opampandlogfire-fleet-control-prodimages. If you mirror images, mirror both.existingSecret.enabled, add alogfire-fleet-transport-tokenkey of at least 32 characters.inClusterTls.certs.mode=existingSecrets, create thelogfire-opampandlogfire-fleet-controlTLS Secrets.logfire-servicemust allow WebSocket upgrades on/v1/opamp.Breaking changes
None.
Scope
The chart version moves to
0.15.4-rc.5, the next pre-release aftermain's0.15.4-rc.4, so merging publishes a pre-release. TheappVersiononmain(04a0335e) is already a platform release that publishes the Fleet images, so this PR does not change it.Validation
helm unittest: 271 passed. The Fleet cases cover the/v1/opamproute order and its upstream and admin health-check ports, the auth, control and public URLs with TLS off and on, the transport token Secret with and withoutexistingSecret, thefleet.opampUrlpath validation, Fleet control's keep-alive, and the preset replica counts.helm lintand a full render pass withci/ci-values.yaml.ci-values.yamlsetsfleet.enabled, so the upgrade and Istio suites deploy both workloads, and the route tests check that/v1/opampreacheslogfire-opamp(400 to a plain GET, 401 with a Bearer challenge to an upgrade without a credential).Generated by Claude Code