Some useful Kubernetes commands

# Want to get a list of running pods?
kubectl get pods

# Want for the list to be running in the background?
kubectl get pods -w

# Want to see containers of one running app?
kctlp get pods -w -l app=your-amazing-app

# Want to see logs of one app?
kubectl logs -l app=your-amazing-app

# Want to see logs of an app and follow 'em?
kubectl logs -f -l app=your-amazing-app

# Want to see information about pod?
kubectl describe pod pod-name-goes-here

Be First to Comment

Leave a Reply

Your email address will not be published.