Skip to content

Commit

Permalink
Merge pull request #49248 from abhilasha2418/drainGlossary
Browse files Browse the repository at this point in the history
Add drain to glossary
  • Loading branch information
k8s-ci-robot authored Dec 28, 2024
2 parents 0653a4c + 766f54f commit e70f701
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions content/en/docs/reference/glossary/drain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Drain
id: drain
date: 2024-12-27
full_link:
short_description: >
Safely evicts Pods from a Node to prepare for maintenance or removal.
tags:
- fundamental
- operation
---
The process of safely evicting {{< glossary_tooltip text="Pods" term_id="pod" >}} from a {{< glossary_tooltip text="Node" term_id="node" >}} to prepare it for maintenance or removal from a {{< glossary_tooltip text="cluster" term_id="cluster" >}}.

<!--more-->

The `kubectl drain` command is used to mark a {{< glossary_tooltip text="Node" term_id="node" >}} as going out of service.
When executed, it evicts all {{< glossary_tooltip text="Pods" term_id="pod" >}} from the {{< glossary_tooltip text="Node" term_id="node" >}}.
If an eviction request is temporarily rejected, `kubectl drain` retries until all {{< glossary_tooltip text="Pods" term_id="pod" >}} are terminated or a configurable timeout is reached.

0 comments on commit e70f701

Please sign in to comment.