kubectl get deploy myapp -o yaml
kubectl get nodes --show-labels
kubectl get pods -A
kubectl api-resources
kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found -n my-namespace
kubectl port-forward svc/myapp 8080:80
kubectl debug pod/mypodName -it --image=busybox
kubectl top pod --sort-by=cpu
kubectl logs podName --previous
kubectl logs -p podName
kubectl get events --sort-by=.metadata.creationTimestamp
kubectl delete pod --field-selector=status.phase=Failed
kubectl delete all --all -n test
kubectl apply -f deployment.yaml
kubectl rollout restart deploy myapp
kubectl exec -it mypodName -c nginx -- bash
kubectl exec -it podName -- bash