Kubectl Cheat Sheet
Kubectl is the main tool for interacting with a Kubernetes cluster, offering various commands for managing and debugging resources. Key commands include 'get' for listing resources, 'describe' for detailed information, 'logs' for retrieving pod logs, and 'exec' for running commands inside a pod. Kubectl also supports creating, updating, and deleting resources, with 'apply -f' recommended for both creation and update. Special commands for deployments include 'rollout status', 'rollout undo', and 'scale'. Shell autocompletion and context specification can enhance usability. While user-interface tools like k9s and Kubernetes Lens offer easier usage, they may lack some features of kubectl.
Read the full version of this article at: https://www.kubecost.com/kubernetes-devops-tools/kubectl-cheat-sheet