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!