Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PortForward ¶ added in v0.58.0
func PortForward(ctx context.Context, clusterID string, pod *corev1.Pod, localPort, remotePort int) error
PortForward establishes a port-forwarding session to a pod.
This first attempts tunneling (websocket) dialer, then fallback to SPDY dialer. Please note that the websocket works only with k8s 1.30 with the "PortForwardWebsockets" feature gate enabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.