> For the complete documentation index, see [llms.txt](https://ultimatewebsolutions.gitbook.io/qa-knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ultimatewebsolutions.gitbook.io/qa-knowledge-base/kubernetes/commands.md).

# Commands

### What exists? → What is happening? → Why? → Look inside&#xD;

| Command                                     | What it does                       |
| ------------------------------------------- | ---------------------------------- |
| kubectl get pods                            | inspect resources                  |
| kubectl describe pod *\<pod-name>*          | troubleshoot pods                  |
| kubectl logs \<pod-name>                    | check logs                         |
| kubectl exec -it *\<pod-name>* -- /bin/bash | execute commands inside containers |
