8000 setup-secrets: kubeExecSource retries while the kubelet comes up by andsens · Pull Request #44 · nixos-homelab/shared · GitHub
[go: up one dir, main page]

Skip to content

8000 setup-secrets: kubeExecSource retries while the kubelet comes up - #44

Merged
andsens merged 1 commit into
mainfrom
claude/kube-exec-retries
Nov 20, 2026
Merged

andsens merged 1 commit into
mainfrom
claude/kube-exec-retries

Conversation

@andsens
@andsens andsens commented Nov 20, 2026
Copy link
Copy Markdown
Collaborator

After k3s restarts, kubectl rollout status returns at once from the state the API kept, while the kubelet still refuses exec connections on port 10250 for a few seconds. With retries = 1 (one retry, 1 s later) the exec sources failed, and a deploy that restarted k3s left setup-secrets@cluster failed, with dial tcp …:10250: connect: connection refused for every *arr and Plex API key.

kubeExecSource now takes clusterAttempts.retries (5, backing off 1, 2, 4, 8, 16 s), like the other cluster helpers. The 120 s timeout per try stays. A workload that never becomes ready now holds the unit up to six tries instead of two.

🤖 Generated with Claude Code

After k3s restarts, `kubectl rollout status` returns at once from the
state the API kept, while the kubelet refuses exec connections on 10250
for a few seconds. With one retry 1 s later, a deploy that restarted k3s
left setup-secrets@cluster failed. The sources now take the retries of
the other cluster helpers (5, backing off 1 s to 16 s).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andsens
andsens enabled auto-merge (squash) November 20, 2026 08:01
@andsens
andsens merged commit 2aaa330 into main Nov 20, 2026
2 checks passed
@andsens
andsens deleted the claude/kube-exec-retries branch November 20, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0