๐ Master hashtag#Kubernetes with Key Commands! ๐ง๐ป
Kubernetes is the backbone of modern container orchestration. Knowing the right commands can save time, boost productivity, and make troubleshooting much easier.
Here are some essential Kubernetes commands every engineer should know:
๐น Check cluster info
kubectl cluster-info
๐น List all nodes
kubectl get nodes
๐น Get all pods across namespaces
kubectl get pods -A
๐น Describe pod details
kubectl describe pod <pod-name>
๐น Access pod logs
kubectl logs -f <pod-name>
๐น Run a shell inside pod
kubectl exec -it <pod-name> -- /bin/bash
๐น Apply configuration file
kubectl apply -f <file.yaml>
๐น Delete resource
kubectl delete -f <file.yaml>
๐ก Whether you’re deploying apps, debugging issues, or scaling workloads, these commands are your day-to-day toolkit for Kubernetes.
๐ What’s your go-to kubectl command that you use almost daily? Drop it in the comments!
Comments
Post a Comment