Skip to content

fix(k8s): keep grafana, prometheus and loki off the control-plane node - #3723

Merged
dan-petty merged 3 commits into
mainfrom
fix/2147-the-volumes-of-grafana-the-prometheus
Nov 6, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/2147-the-volumes-of-grafana-the-prometheus

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A person moved the volumes of Grafana, the Prometheus server and Loki to worker nodes on 2026-11-06. Each of the three pods now requires a node without the control-plane label, as every other pod on a local-path claim does. The table of exemptions in the placement test is empty. The README text of that table matches. The merge restarts each of the three pods one time on the node of its volume.

Closes #2147

Change: openspec/changes/archive/2026-11-06-2147-the-volumes-of-grafana-the-prometheus/

The volumes of Grafana, the Prometheus server and Loki moved to worker
nodes. Each of the three pods now requires a node without the
control-plane label, as every other pod on a local-path claim does.

The table of exemptions in the placement test is empty. The README
paragraph of the placement test names the right test path and no longer
lists the three pods as exempt.

Refs #2147
Split the long sentence of the exemption table in the placement section
of the k8s README into short sentences. The design of the plan names the
README section and the values blocks, not their line numbers, and says
that a person moved the volumes before this change.

Refs #2147
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Results for the pull request body. The body holds the permanent text. This comment holds the runs.

fail-to-pass

uv run devops ci fail-to-pass --base origin/main replays tests/core/test_k8s_local_path_placement.py against the merge-base tree. One test fails on the base and passes here: test_every_chart_pod_on_a_claim_keeps_off_the_control_plane_node. It lists the three pods (Grafana, the Prometheus server and Loki). The other 8 tests pass on both trees.

Chart renders

helm template with the values of this branch, against helm template with the values of origin/main, for the targetRevision of each Application. The only difference is the affinity block.

Chart Version Where the block appears Other change
grafana 14.0.1 Deployment grafana and the Helm test Pod grafana-test none
prometheus 29.35.0 Deployment prometheus-server the Alertmanager StatefulSet is the same
loki 20.0.2 StatefulSet loki its podAntiAffinity on kubernetes.io/hostname stays

Live check (read only, 2026-11-06)

kubectl get pv shows the bound volumes of monitoring/grafana, monitoring/prometheus-server and logging/storage-loki-0 as Retain and Bound, each on a worker node. kubectl get nodes -L node-role.kubernetes.io/control-plane prints true only for the control-plane node. The three old volumes are Released on the control-plane node. I changed nothing in the cluster.

Full uv run devops ci (under the shared lock)

23 of 25 gates pass. These gates fail:

  • pytest & coverage: 19306 passed, 2 failed, 1 error. The two failures are known host failures of this host (the task brief lists them as failing on origin/main too, and I did not run them on origin/main): tests/commands/test_devcontainer_install_tools_dry_run.py::test_mark_only_commands_under_global_dry_run, and tests/ai/test_tool_executor_contract.py::test_the_direct_executor_refuses_a_network_profile_before_it_starts_the_tool[direct] (failure and error, fix(ci): host state fails four tests and one case #3585).
  • The test row took 10m 16s, over the 5 minute budget (fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593).
  • coverage: not measured, because the test gate failed.

tests/crypto/test_ssh.py and tests/telemetry/test_config_env_overrides.py passed in this run.

Review findings

  • design.md (minor): correct. It cited README line 337 (the paragraph is under the section name Local-Path Volume Placement), the line numbers of two values blocks that moved, and a gate that the plan no longer has. It now names the section and the blocks, and says that a person moved the volumes before this change.
  • k8s/README.md (minor): correct. The new sentence had 28 words and two ideas. The paragraph is now short sentences, and the table has its own paragraph. The long bullets of tasks.md are short sentences too.

The plan pull request #2857

This change does not supersede #2857. It merged on 2026-10-31 and it closed no issue. This change builds on its plan, and it closes #2147.

Not run

  • Argo CD sync and the restart of the three pods: they happen after the merge, and a person owns the merge.
  • Remote CI of this pull request: pending at this comment.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 03:46
@dan-petty
dan-petty merged commit 34010d6 into main Nov 6, 2026
22 checks passed
@dan-petty
dan-petty deleted the fix/2147-the-volumes-of-grafana-the-prometheus branch November 6, 2026 03:47
@dan-petty

Copy link
Copy Markdown
Owner Author

Remote CI of this pull request: 22 of 22 checks pass (2 skipped by their own trigger), on head d1d22c4. I marked the pull request ready. A person merges it, and Argo CD applies the three values files after the merge.

dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.64.2](v0.64.1...v0.64.2)
(2026-11-06)


### Bug Fixes

* **k8s:** keep grafana, prometheus and loki off the control-plane node
([#3723](#3723))
([34010d6](34010d6))
* **roadmap:** keep a plan with a dropped criterion in draft
([#3718](#3718))
([dacaf57](dacaf57))
* **roadmap:** the alternatives check reads the ADRs and the item
([#3714](#3714))
([a22260c](a22260c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): the volumes of grafana, the prometheus server and loki move off the control-plane node, and their placement exemptions go

1 participant