Open links in new tab
  1. Kubernetes

    Container orchestration system
  1. Kubernetes is a powerful container orchestration platform that automates the deployment, scaling, and management of containerized applications. The primary command-line tool for interacting with Kubernetes clusters is kubectl. Here are some essential kubectl commands to help you manage your Kubernetes environment effectively.

    Common Commands

    • Run a two-replica nginx deployment: kubectl run my-nginx --image=nginx --replicas=2 --port=80

    • List all nodes and pods: kubectl get pod -o wide

    • Get all resources in all namespaces: kubectl get all --all-namespaces

    Check Performance

    • Node resource usage: kubectl top node

    • Pod resource usage: kubectl top pod

    Label & Annotation

    • Add a label to a pod: kubectl label pods <podname> owner=gfg

    • Remove a label from a pod: kubectl label pods <podname> owner-

    Secrets

    • List all secrets: kubectl get secrets --all-namespaces

    • Get a specific secret: kubectl get secret <secret-name>

    Services

    Feedback
  2. Kubernetes - Kubectl Commands - GeeksforGeeks

    Jul 23, 2025 · The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy …

  3. People also ask
  4. Kubectl Cheat Sheet - Kubernetes Guide

    Kubectl Cheat Sheet This isn't just a list of commands; it's a collection of the workflows you use every day. From switching contexts to debugging crashed …

  5. Kubectl Cheat Sheet: Kubectl Commands With Examples …

    3 days ago · Learn how to use kubectl commands to control Kubernetes clusters with examples and a PDF reference sheet. Find out how to list, create, update, …

  6. Kubernetes Cheat Sheet/ Kubectl Cheat Sheet (Updated …

    Mar 28, 2025 · This cheat sheet will help you navigate through essential commands and concepts of Kubernetes, ensuring you have the necessary tools and …

  7. Essential Kubernetes Commands: The Ultimate Cheat …

    1 day ago · The ultimate Kubernetes (kubectl) commands cheat sheet for backend engineers. A complete reference with 60+ essential commands for pods, …

  8. Kubernetes (K8s) Command Cheat Sheet - DEV …

    Apr 28, 2025 · Use the following commands to control your apps in the cluster. When things go wrong, you need to dig deep. Here are some useful ways to get …

  9. Kubectl Cheat Sheet with Examples- 50 Quick Commands

    Oct 3, 2024 · Learn how to use Kubectl commands for basic and advanced operations on Kubernetes clusters. This guide covers 10 categories of …

  10. Top 20 kubectl Commands Every Kubernetes Beginner …

    Jul 15, 2025 · This guide covers the top 20 kubectl commands every kuberntes beginner must know to manage clusters, pods, deployments, and more.