Skip to content

assistant-api-ws: pin to enschede-t1000-1 to survive desktop power-off#596

Merged
ExtraToast merged 1 commit into
mainfrom
fix/assistant-api-ws-node-pin
Jun 6, 2026
Merged

assistant-api-ws: pin to enschede-t1000-1 to survive desktop power-off#596
ExtraToast merged 1 commit into
mainfrom
fix/assistant-api-ws-node-pin

Conversation

@ExtraToast

Copy link
Copy Markdown
Owner

The assistant-api-ws deployment had no node affinity beyond site=enschede + arch=amd64, so the scheduler could place the pod on the rx7900xtx or gtx-960m desktop nodes. Both are powered off when not in use. When a desktop goes offline, the k8s Service endpoint keeps pointing at the dead pod for the full node eviction window (~5 min), leaving the assistant WebSocket completely unavailable and Gatus going red.

Today's incident: enschede-rx7900xtx-1 went NotReady at 16:38 UTC. The assistant-api-ws pod was on that node and stuck in Terminating. A new pod was eventually scheduled on enschede-t1000-1, but the terminal WS was dead for ~13 minutes.

The fix pins the deployment to enschede-t1000-1 via personal-stack/node: enschede-t1000-1. That node is the always-on NAS/utility server (AdGuard, Samba, backup store) — it is never powered off. The site=enschede and arch=amd64 selectors are dropped as redundant once the node pin is in place.

Immediate action required: force-delete the stuck Terminating pod on the offline node so the Service endpoint is clean:

kubectl delete pod -n assistant-system assistant-api-ws-6685cc6c59-hqfm9 --force --grace-period=0

The rx7900xtx and gtx-960m Enschede nodes are desktops that are powered
off periodically. When the pod lands on one of those nodes and the node
goes offline, the k8s Service endpoint keeps pointing at the dead pod
for the full node eviction window (~5 min), leaving the assistant WS
completely broken. The fix pins the deployment to enschede-t1000-1,
which is an always-on server node.
@ExtraToast ExtraToast added the bug Something isn't working label Jun 6, 2026
@ExtraToast ExtraToast self-assigned this Jun 6, 2026
@ExtraToast ExtraToast merged commit afa8589 into main Jun 6, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant