Repository navigation
docs(runbook): add the node-headroom deploy pre-flight (#812) - #866
Merged
Merged
Conversation
A roll is a scheduling event. #812 fixed the edge Deployment's half by making the default strategy surge-free at >= 2 replicas, which takes the scheduler out of that rollout path entirely. The DaemonSets' half cannot be fixed by a strategy — a DaemonSet pod lands on its node or nowhere — so it needs a check before the roll rather than a diagnosis after it. Adds §7 "Pre-flight: node headroom before a roll": rank nodes by CPU request, name the tenants on any node over the line, and assert nothing is stuck Terminating (which holds its CPU request and makes the node ineligible for preemption outright — #796). All three commands were run against talos-main before being written down, which caught two defects that would have shipped: - the ranking sorted the percentage lexically, so "(100%)" sorted below "(58%)" and hid the single node the check exists to find; - the pod query left kubectl's custom-columns "[*]" unquoted, so zsh failed it with "no matches found" before kubectl ever ran. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
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.
Closes #812.
#812 had three items. Two are already done; this is the third.
maxSurgepreemptionedge-deployment.yamlis surge-free by default atreplicaCount >= 2, so no 400m surge pod needs placing and the scheduler is out of the edge rollout pathaether-soak-loaderPriorityClass (#811)What it adds
A
§7subsection that runs before ahelm upgrade, not after it goes wrong. It separates the two exposures, because only one of them was fixable in the chart:edge.rollingUpdateback to a surging strategy;It also asserts nothing is stuck
Terminating: such a pod keeps its CPU request and makes its node ineligible for preemption outright (preemption: not eligible due to a terminating pod on the nominated node), which is the #796 mechanism.The commands were run before they were written down
That caught two defects that would otherwise have shipped as a runbook people trust:
sort -k3 -ron(58%)/(100%)puts(100%)last — the check would have hidden the single node it exists to find. Now sorts on an extracted numeric percentage.-o custom-columns=...containers[*]...is a glob; zsh — the shell in use here — fails it withno matches foundbeforekubectlever runs.Verified output on talos-main (currently 58 % peak, comfortably clear):
Docs only — no chart change, so no
Chart.yamlbump.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr