Skip to main content

k9s-inspect-a-deployment

#post

k9s-inspect-a-deployment

  1. If “Context:” in the top left needs to change, search :context, select the correct one and hit enter
  2. Search :deployment (or just :deploy), select the one you want and hit enter
  3. Select a pod, then press l to tail its container logs
  4. Hit esc anytime to go back/up a level

To inspect a pod:

  1. d to describe the pod
  2. y to view the pod’s YAML config
  3. l to view the pod’s container logs
  4. s to shell into the pod (ctrl-d to exit)

Benefits over Argo:

  • Refreshes every 2 seconds
  • Can shell into container quickly from same UI if necessary to answer questions
  • Vim motions and keyboard quickness, baby

TODO in a separate note:

  • How to shell into a container to run inspection commands
  • ? on any resource shows the applicable keymaps