kubernetes.pod.port_forward ​
Forward a local WebSocket to a TCP port on a Pod
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-kubernetes |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | — |
namespace | string | Yes | — | — |
name | string | Yes | — | — |
remote_port | integer | Yes | — | — |
label | string | No | — | — |
organization_uuid | uuid | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | — |
namespace | string | No | — | — |
name | string | No | — | — |
remote_port | integer | No | — | — |
label | string | No | — | — |
organization_uuid | uuid | No | — | — |
session_uuid | string | No | — | — |
ws_endpoint | string | No | — | — |
streaming_pod | string | No | — | — |
bytes_in | integer | No | — | — |
bytes_out | integer | No | — | — |
reason | string | No | — | — |
failure_code | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | open | — |
streaming | No | No | — | — | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | open | streaming | — |
streaming | close | completed | — |
* (any state) | fail | failed | — |
streaming | timeout | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "kubernetes.pod.port_forward",
"initial_data": {
"connection_uuid": "value",
"namespace": "value",
"name": "value",
"remote_port": 123
}
}