Skip to content

feat(infra): Open CloudNativePG window before drain - #6976

Merged
dan-petty merged 1 commit into
mainfrom
feat/5267-open-a-cloudnativepg-window-to-drain-a-node
Nov 24, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/5267-open-a-cloudnativepg-window-to-drain-a-node

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops infra apply (#5125) drains each disruptive host with no --force, so a PodDisruptionBudget applies. A CloudNativePG cluster with 1 instance has a primary PodDisruptionBudget that allows 0 disruptions. On homelab, the control-plane node runs two such clusters (llm-gateway-db in llm, mattermost-db in mattermost). The drain check (kubectl drain --dry-run=server) of that node stops the apply with error when evicting pods/"llm-gateway-db-1" -n "llm": global timeout reached. To drain the node safely, the apply must open a maintenance window on each single-instance CloudNativePG cluster whose primary runs on that node before the drain check, and close the window after the uncordon.

Closes #5267

Change: openspec/changes/archive/2026-11-24-5267-open-a-cloudnativepg-window-to-drain-a-node/

@dan-petty dan-petty added type/feature Type feature: a new function scope/infra Docker container images, DevContainers, and infrastructure tooling labels Nov 24, 2026
@dan-petty
dan-petty force-pushed the feat/5267-open-a-cloudnativepg-window-to-drain-a-node branch from 3afda4a to 8fdee58 Compare November 24, 2026 06:38
Patch single-instance CloudNativePG clusters whose primary runs on a disruptive host with a maintenance window before the drain check. Close the window after uncordon and wait for cluster health. Refuse the host when git contains the field or Argo CD self-heal overwrites it without ignoreDifferences.

Closes #5267

Change:
`openspec/changes/archive/2026-11-24-5267-open-a-cloudnativepg-window-to-drain-a-node/`
@dan-petty
dan-petty force-pushed the feat/5267-open-a-cloudnativepg-window-to-drain-a-node branch from 8fdee58 to 34bd670 Compare November 24, 2026 06:48
@dan-petty
dan-petty marked this pull request as ready for review November 24, 2026 06:55
@dan-petty
dan-petty merged commit 16a309e into main Nov 24, 2026
29 checks passed
@dan-petty
dan-petty deleted the feat/5267-open-a-cloudnativepg-window-to-drain-a-node branch November 24, 2026 11:10
dan-petty-release Bot added a commit that referenced this pull request Nov 24, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.209.0](v0.208.0...v0.209.0)
(2026-11-24)


### Features

* **infra:** apply a merged infra PR in a step job
([#6980](#6980))
([e3329b3](e3329b3))
* **infra:** Open CloudNativePG window before drain
([#6976](#6976))
([16a309e](16a309e))
* **infra:** run drift in cluster and plan infra PRs
([#6977](#6977))
([4c8afce](4c8afce))
* **monitoring:** Record the shared roadmap Service selectors
([#6978](#6978))
([205ebcb](205ebcb))
* **service:** cache GitHub issue state in the brain from webhooks
([#6966](#6966))
([ed82af5](ed82af5))

---
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/infra Docker container images, DevContainers, and infrastructure tooling type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(infra): open a CloudNativePG window to drain a node

1 participant