← Pods73 / 640
hardkubectl

Forward a local port to a port on a specific pod for debugging access

command

kubectl port-forward pod/POD_NAME LOCAL_PORT:REMOTE_PORT

also accepted

kubectl port-forward POD_NAME LOCAL_PORT:REMOTE_PORTkubectl port-forward pod/POD_NAMEkubectl port-forward POD_NAME

Test your recall — not just your reading.

Practice with interactive quiz →