NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle0 views

Which kubectl commands do you know?

Practice

Asked at

AI answer

For day-to-day work, I know commands such as: kubectl get — list resources; describe — get details and events; logs — view container logs; exec — run a command in a container; apply and delete — apply or delete a manifest; edit — modify a resource; rollout status/history/undo — check, view the history of, or roll back an update; scale — change the number of replicas; config get-contexts/use-context — check and switch contexts. For example, kubectl get pods -n app lists the pods in the app namespace.