Skip to content

Conversation

girdharagrawalbro
Copy link

Adds documentation for the kubectl drain subcommand used for node maintenance.

Closes part of #17606 (kubectl cluster management commands).

Changes

  • Created pages/common/kubectl-drain.md with 5 practical examples
  • Covers common maintenance scenarios: basic drain, force delete, emptyDir handling
  • Includes control-plane node example and label selector usage
  • Follows style guide: imperative mood, clear descriptions, proper placeholder syntax

Examples

  • Drain a node with PodDisruptionBudgets
  • Force delete standalone pods
  • Delete pods using emptyDir volumes
  • Drain control-plane nodes
  • Drain by label selector

@CLAassistant
Copy link

CLAassistant commented Oct 16, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers. labels Oct 16, 2025
@dmmqz dmmqz mentioned this pull request Oct 16, 2025
43 tasks
@trolzen
Copy link
Contributor

trolzen commented Oct 19, 2025

Hello, @girdharagrawalbro! Are you using some kind of AI tool to craft the pages and PR descriptions?

@Managor
Copy link
Member

Managor commented Oct 19, 2025

He most certainly is. That is not a problem as long as the commands work. The trouble starts when the submitter submits a PR with hallucinations.

@trolzen
Copy link
Contributor

trolzen commented Oct 19, 2025

Yeah, that is my concern, too. If that's the case, I was going to ask them if they put an extra effort to double-check the output before submitting. Now it look like not so much, as there are many change requests from the reviewers, mostly covered by the style guide.

@Managor Managor closed this Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants