Interface IPortForwardManager
Manages port-forwarding from the local workstation to remote pods running in the cluster.
Namespace: Neon.Kube.PortForward
Assembly: Neon.Kube.dll
Syntax
public interface IPortForwardManager
Methods
StartPodPortForward(string, string, int, int, IPAddress, Dictionary<string, List<string>>, CancellationToken)
Establishes a PortForwardStream connection from the local workstation toa pod running in the cluster.
Declaration
void StartPodPortForward(string namespaceName, string podName, int localPort, int remotePort, IPAddress localAddress = null, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | namespaceName | Specifies the remote pod namespace. |
string | podName | Specifies the remote pod name. |
int | localPort | Specifies the local port on the workstation. |
int | remotePort | Specifies the target port for the remotye pod. |
IPAddress | localAddress | Specifies the listen port. If not set, Loopback is used. |
Dictionary<string, List<string>> | customHeaders | Optionally specifies any custom connection headers. |
CancellationToken | cancellationToken | Optionally specifies a cancellation token. |