# Node Maintenance

> How do you safely take a Kubernetes node out of service for maintenance (for example an OS patch or upgrade) without disrupting applications?

Canonical: https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-drain-node
Last updated: 2026-11-28

Difficulty: Advanced

## Question

How do you safely take a Kubernetes node out of service for maintenance (for example an OS patch or upgrade) without disrupting applications?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

kubectl cordon, kubectl drain, Eviction API, PodDisruptionBudget, kubectl uncordon

Previous: [Executing in Pod](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-exec-shell) · Next: [Static Pods](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-static-pods) · [All of Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)

## More Kubernetes & Orchestration questions

- [Service Discovery](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-service-discovery)
- [Init Containers](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-init-containers)
- [Soft vs. Hard Affinity](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-affinity-soft-hard)
- [Metrics Server](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-metric-server-role)
- [Checking Resource Usage](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-kubectl-top)
- [Pod Eviction](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-pod-eviction)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)
