Loading video player...
š kubectl is the most important tool in every Kubernetes engineer's toolkit. But knowing which command to use and when ā that is what separates beginners from engineers who are truly productive with Kubernetes. In this video I have covered 25+ essential kubectl commands that you will use every single day as a DevOps engineer ā from basic pod management to deployments, scaling, rollbacks, port forwarding and debugging! āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā šÆ WHY KUBECTL COMMANDS ARE CRITICAL TO MASTER Kubernetes is only as powerful as your ability to interact with it efficiently. Every task you do in Kubernetes ā creating resources, debugging pods, scaling deployments, checking logs, rolling back releases ā all of it happens through kubectl. Engineers who know kubectl deeply can debug production issues in minutes. Engineers who don't waste hours. This video gives you a complete practical reference for every kubectl command you need in real projects. āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā š ALL COMMANDS COVERED IN THIS VIDEO šµ Basic Resource Management ā kubectl apply -f pod.yaml ā kubectl delete -f pod.yaml ā kubectl get pods ā kubectl get pods -o wide ā kubectl get pods -n namespace ā kubectl get all ā kubectl get ns šµ Pod Debugging ā kubectl describe pod podname ā kubectl logs podname ā kubectl logs -f podname ā kubectl exec -it podname -- /bin/bash ā kubectl get events ā kubectl get pods | grep error šµ Node Management ā kubectl get nodes ā kubectl get nodes -o wide šµ Deployment Management ā kubectl get deployments ā kubectl describe deployment deploymentName ā kubectl scale deployment deploymentName --replicas=3 ā kubectl rollout status deployment deploymentName ā kubectl rollout undo deployment deploymentName šµ Networking and Context ā kubectl port-forward podName 8080:80 ā kubectl config set-context --current --namespace=ns āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā š WHO IS THIS VIDEO FOR This video is perfect for you if you are: š A Kubernetes beginner who just set up their first cluster š A DevOps engineer who wants to master kubectl deeply š Someone preparing for CKA or CKAD certification exams š A developer who works with Kubernetes daily š Anyone who wants a single reference video for all essential kubectl commands āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā š” MOST IMPORTANT COMMANDS AND WHEN TO USE THEM š§ Debugging a crashing pod? ā kubectl describe pod ā check events section first ā kubectl logs ā check application errors ā kubectl exec -it ā go inside pod and investigate š§ Deployment not updating? ā kubectl rollout status ā check if rollout is stuck ā kubectl rollout undo ā instantly rollback to previous version š§ Need to test your app locally? ā kubectl port-forward ā forward pod port to your local machine š§ Working in wrong namespace? ā kubectl config set-context --current --namespace Set default namespace so you don't have to type -n every time š§ Finding failing pods quickly? ā kubectl get pods | grep error Instantly filters only problematic pods in a large cluster āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā š SUBSCRIBE TO ayushbuildstech If you are serious about learning Kubernetes and DevOps with real hands on tutorials ā Subscribe to ayushbuildstech and hit the bell icon so you never miss a video! Every video on this channel covers: ā Real hands on demos so you actually learn by doing ā Clear step by step explanations for all levels ā Modern DevOps and Kubernetes practices used in production ā Interview preparation content for DevOps and cloud roles āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā š FOUND THIS HELPFUL? If this video helped you master kubectl commands ā smash the Like button! It helps this video reach more engineers learning Kubernetes. š¬ COMMENT BELOW: Which kubectl command do you use most in your day to day work? Comment below ā would love to know! āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā š RELATED TOPICS YOU SHOULD LEARN NEXT ā How to Create Your First Kubernetes Pod ā Kubernetes Architecture Explained ā Kubernetes Service Types Explained ā Kubernetes Deployments Explained ā Install Minikube on Ubuntu EC2 āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā #Kubernetes #kubectl #DevOps #KubernetesBeginners #KubernetesCommands #KubernetesTutorial #DevOpsEngineer #ayushbuildstech