kubectl port-forward <TYPE | TYPE/NAME> [Resource] <[LOCAL_PORT:REMOTE_PORT]...>

Forward one or more local ports to a pod. This command requires the node to have 'socat' installed

Arguments

NameDescription
TYPE | TYPE/NAME
Resource
[LOCAL_PORT:REMOTE_PORT]

Options

NameDescription
--address <arg>Addresses to listen on (comma separated). Only accepts IP addresses or localhost as a value. When localhost is supplied, kubectl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these addresses are available to bind
--pod-running-timeout <arg>The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running