Skip to content

Commit 766f54f

Browse files
committed
feature: add drain to glossary
1 parent 02198d8 commit 766f54f

File tree

1 file changed

+18
-0
lines changed
  • content/en/docs/reference/glossary

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Drain
3+
id: drain
4+
date: 2024-12-27
5+
full_link:
6+
short_description: >
7+
Safely evicts Pods from a Node to prepare for maintenance or removal.
8+
tags:
9+
- fundamental
10+
- operation
11+
---
12+
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" >}}.
13+
14+
<!--more-->
15+
16+
The `kubectl drain` command is used to mark a {{< glossary_tooltip text="Node" term_id="node" >}} as going out of service.
17+
When executed, it evicts all {{< glossary_tooltip text="Pods" term_id="pod" >}} from the {{< glossary_tooltip text="Node" term_id="node" >}}.
18+
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 commit comments

Comments
 (0)