Merge pull request #49248 from abhilasha2418/drainGlossary

Add drain to glossary
pull/49256/head
Kubernetes Prow Robot 2024-12-28 04:04:12 +01:00 committed by GitHub
commit e70f7015f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 0 deletions

View File

@ -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.