Title here
Summary here
This cheat sheet provides commonly used kubectl
commands for managing Kubernetes clusters.
kubectl get pods
kubectl get pods -n <namespace>
kubectl get nodes
kubectl get services
kubectl logs <pod-name>
kubectl logs <pod-name> -n <namespace>
kubectl logs <pod-name> -c <container-name>
kubectl logs <pod-name> -c <container-name> -n <namespace>
kubectl logs <pod-name> -c <container-name> -n <namespace> --timestamps
kubectl logs <pod-name> -c <container-name> -n <namespace> --timestamps --tail 10