Skip to content

fix(monitoring): Grafana starts when the renderer token is missing #5200

Closed

Description

@dan-petty

Problem or Motivation

On 2026-11-12, Grafana served nothing from about 19:42Z to 20:07Z. #5193 added the image renderer and the Secret monitoring/grafana-image-renderer, which only devops k8s push-secrets (a person, from the keyring) creates. The merge reached the cluster through Argo CD before the Secret existed. The Grafana container reads GF_RENDERING_RENDERER_TOKEN through a required secretKeyRef, so the Grafana pod stopped in CreateContainerConfigError, and the Recreate strategy had already stopped the old pod. A Secret of an optional feature (panel images) took down the whole Grafana service.

Proposed Solution & Architectural Design

  • Make the reference of the Grafana container to the renderer token optional (optional: true on the secretKeyRef, through the chart's env values), so Grafana starts without the Secret and only rendering is unavailable. The renderer Deployment keeps its required reference: it has no use without the token.
  • Add a test of the rendered chart (helm template with the values) that fails when a Grafana container references a Secret of an optional feature without optional: true, and name the optional-feature Secrets in one list next to the cluster Secret table (src/devops_cli/k8s/cluster_secrets.py).
  • In k8s/README.md "Cluster Secrets": a pull request that adds a Secret reference names the push command as its first line, and the person pushes the Secret before the merge.

Target Subsystem

Grafana manifests (k8s/monitoring/grafana-values.yaml), cluster Secrets.

Existing Tool Considered

The Kubernetes optional field of secretKeyRef and the Grafana Helm chart env values. No new tool.

Acceptance Criteria

  • helm template of the Grafana chart with the values renders optional: true on the Grafana container's renderer token reference, and the test fails without it.
  • In a kind or minikube run, or by the rendered manifest and the Kubernetes documented behavior, Grafana starts with the Secret missing and the renderer pod waits.
  • k8s/README.md "Cluster Secrets" holds the push-before-merge rule.

Related

#5185, #5193.

Source: #5193

Activity

  1. added
    source/agent
    type/bug
    scope/monitoring
    status/new
    value/medium
    effort/low
    on Nov 12, 2026
  2. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    status/in-progress
    and removed
    status/new
    on Nov 12, 2026
  4. added
    status/in-review
    and removed
    status/in-progress
    on Nov 15, 2026
  5. removed
    status/in-review
    on Nov 15, 2026
  6. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-15 12:41 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/lowpriority/p2-mediumscope/monitoringsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions