---
title: "Discussion on \"Important K8S Commands\" | Hashnode"
description: "Discussion on \"Important K8S Commands\". ------Cluster Management------# Switch cluster context—>kubectl config use-context\n# List all nodes—>kubectl get nodes\n# Mark node as unschedulable—>kubectl cordon\n# Safely evict all pods from a node—>kubectl drain --ignore-daemonsets\n# Mark node as ..."
url: "https://hashnode.com/posts/important-k8s-commands/69522e691a0d87f5701f0ff7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Important K8S Commands](https://imp-k8s-commands.hashnode.dev/important-k8s-commands?utm_source=hashnode&utm_medium=feed)

\------Cluster Management------# Switch cluster context—>kubectl config use-context # List all nodes—>kubectl get nodes # Mark node as unschedulable—>kubectl cordon # Safely evict all pods from a node—>kubectl drain --ignore-daemonsets # Mark node as ...

Dec 22, 2025 · 3 min read · imp-k8s-commands.hashnode.dev  
Read the article

-   [#devops](https://hashnode.com/tag/devops)
-   [#kubernetes](https://hashnode.com/tag/kubernetes)
-   [#docker](https://hashnode.com/tag/docker)
-   [#aws](https://hashnode.com/tag/aws)
-   [#commands](https://hashnode.com/tag/commands)

## Written by

[Shivakumar S](https://hashnode.com/@shivakumar24)

@shivakumar24 · Bengaluru,Karnataka

  
[View profile](https://hashnode.com/@shivakumar24)

Senior Devops Engineer

Senior DevOps Engineer with a strong background in configuration management and production support, experienced in AWS, Docker, Kubernetes, Terraform, Git, and Ansible. Skilled in automating workflows, optimizing system performance, and building scalable, secure cloud-based infrastructures

## Responses

Comments are turned off for this post.
