kubectl commands I use everyday.
The kubectl CLI tool is your window into a Kubernetes cluster. You can't get a Kubernetes certification without it. Below are some of the commands I use on a daily bases:
Command: kubectl get pods
Purpose: List running containers/pods
Command: kubectl logs <pod>
Purpose: View logs for the chosen pod.
Command: kubectl describe pod <pod-name>
Purpose: Get detailed info of the chosen pod.
Command: kubectl exec -it <pod-name> --bash
Purpose: Execute an interactive shell inside the pod.
Command: kubectl delete pod <pod-name>
Purpose: Remove container/pod
Command: kubectl config current-context
Purpose: Shows which cluster you are working with.
You can find many commands like this in my free Kubernetes cheat-sheet. We will be using these often in future lab exercises.
Hope you all have a great weekend!
2
0 comments
Jonathan Ingram
2
kubectl commands I use everyday.
powered by
AZDevOpsDojo
skool.com/azuredevops-6924
From spinning up Azure environments to creating Kubernetes clusters and refining DevOps practices, I’m here to make infrastructure accessible and fun.
Build your own community
Bring people together around your passion and get paid.
Powered by