Top 10 Must-Know Kubernetes Commands for DevOps Engineers

Muhammad Usama Khan
3 min readSep 19, 2024

Introduction

As a DevOps engineer, you’re likely no stranger to containers and orchestration. Kubernetes has become the de facto standard for deploying, scaling, and managing containerized applications. But with its vast array of features and commands, it can be overwhelming to learn and master.

In this article, we’ll explore the top 10 must-know Kubernetes commands that every DevOps engineer should have in their toolkit. Whether you’re a beginner or an experienced pro, these commands will help you work more efficiently and effectively with Kubernetes.

  1. Get pods

kubectl get pods

This command displays a list of all running pods in your cluster. You can use various flags to filter the output, such as -n for selecting a specific namespace or -l for filtering based on labels.

2. Describe pods

kubectl describe pod <pod-name>

This command provides detailed information about a specific pod, including its configuration, events, and logs.

3. Delete pods

kubectl delete pod <pod-name>

Use this command to delete a specific pod or all pods in a namespace.

--

--

Muhammad Usama Khan

LinkedIn Top Voice | DevOps/SRE Expert 🚀 | Certified Cloud Consultant ☁️ | AWS, Azure, GCP, OTC | AI & Data | 🔔 https://www.linkedin.com/in/usama-khan-791b0