kubectl command builder
Build kubectl commands for logs, exec, port-forward, rollouts, debugging and more, with each flag explained.
Runs locally. Nothing you paste leaves this tab.
Habits that save time
- Always pass
--contextin scripts and runbooks. The current context is the most common cause of “I ran it against prod”. kubectl logs deploy/apipicks one pod. Use-l app=api --prefixto see all of them.--previousshows the logs of the container that crashed, which is what you need for CrashLoopBackOff.kubectl debugadds a throwaway container with tools to a running pod, so distroless images stay distroless.