Skip to content

fix(k8s): Tempo starts again with config keys of its version #6730

Description

@dan-petty

Problem

Checked on the live cluster on 2026-11-22 03:00 UTC (devops-cli main 235fea0).

  • Pod otel/tempo-0 (docker.io/grafana/tempo:3.1.1) is in CrashLoopBackOff since about 19:30 UTC on 2026-11-21, with more than 90 restarts, and Application tempo stays Progressing. So the cluster stores no new traces.
  • Its log: failed parsing config: failed to parse configFile /conf/tempo.yaml: yaml: unmarshal errors: line 47: field max_bytes_per_trace not found in type frontend.SearchConfig; line 50: field target_bytes_per_second not found in type frontend.SearchConfig.
  • Cause: fix(k8s): cap Tempo query limits under its memory limit #6669 (PR for fix(k8s): a trace search OOM-kills Tempo #6616, merged 2026-11-21 19:16 UTC) added queryFrontend.search.max_bytes_per_trace and queryFrontend.search.target_bytes_per_second to k8s/otel/tempo-values.yaml:44-50. Tempo 3.1.1 has no such keys in the search config of the query frontend, so the process stops at start.
  • No check of the PR rendered the Tempo config and parsed it with the Tempo version that runs.

Proposed remedy

  • Put each limit of fix(k8s): cap Tempo query limits under its memory limit #6669 under the key that Tempo 3.1.1 has for it (read the config structs of Tempo at tag v3.1.1, for example modules/frontend/config.go and the overrides), or remove a limit that Tempo 3.1.1 does not have, and keep the aim of fix(k8s): a trace search OOM-kills Tempo #6616: a trace search does not take Tempo over its memory limit.
  • Prove the rendered config with the real binary: render tempo-values.yaml with the pinned chart, and start grafana/tempo:3.1.1 with that config until it passes the config parse.
  • Add a check that fails when the rendered Tempo config has a key that Tempo of the pinned image does not parse, so the problem cannot come back (AGENTS.md rule 11).

Acceptance criteria

  • The rendered config parses with grafana/tempo:3.1.1 (the proof is in the PR).
  • After the merge and the sync, otel/tempo-0 is Running and Ready, Application tempo is Synced and Healthy, and a TraceQL search through Grafana returns traces.

Dependencies

None.

Activity

  1. added
    type/bug
    scope/k8s
    on Nov 22, 2026
  2. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P0-Critical. Tempo is in CrashLoopBackOff with 90+ restarts, so the cluster stores no new traces and the trace service is down.
    • Related: fix(k8s): a trace search OOM-kills Tempo #6616, which asks for a different change. Both target the Tempo trace-search memory limit, but #6616 asks for the limit feature while the candidate fixes the crash its PR caused and adds a config-validation check.
  3. added
    source/agent
    status/new
    effort/medium
    value/high
    priority/p0-critical
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 22, 2026
  4. added
    status/in-review
    and removed
    status/in-progress
    on Nov 22, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 22, 2026
  6. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor

    Live check after the merge of #6733 and the Argo CD sync (2026-11-22 04:12 UTC): otel/tempo-0 was still in its crash backoff, so I deleted the pod at 04:14:31 UTC to start it on the new config. It logged Tempo started and is 1/1 Running; Application tempo is Synced and Healthy. The distributor received 66889 spans in the first minutes, and a TraceQL search ({}, limit 5) returns traces of roadmap-service and devops-cli; the services with spans are roadmap-service, devops-mcp-server, devops-cli, llm-gateway, roadmap-stage, renovate and roadmap-implement. Tempo stored no traces from about 19:30 UTC on 2026-11-21 to 04:14 UTC.

  7. added a commit that references this issue on Nov 22, 2026
  8. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor
  9. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-22 04:36 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p0-criticalscope/k8ssource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions