port-forward
Forward a Kubernetes service to a local port for direct access to cluster resources without exposing them externally. Specify the service name, local port, and target port to establish the connection.
Instructions
Port forward a Kubernetes service to a local port
Input Schema
Name | Required | Description | Default |
---|---|---|---|
localPort | Yes | The local port to forward to | |
namespace | No | The namespace of the service (optional, defaults to current context namespace) | |
service | Yes | The name of the Kubernetes service to port-forward | |
targetPort | Yes | The target port on the service |
Input Schema (JSON Schema)
{
"properties": {
"localPort": {
"description": "The local port to forward to",
"type": "number"
},
"namespace": {
"description": "The namespace of the service (optional, defaults to current context namespace)",
"type": "string"
},
"service": {
"description": "The name of the Kubernetes service to port-forward",
"type": "string"
},
"targetPort": {
"description": "The target port on the service",
"type": "number"
}
},
"required": [
"service",
"localPort",
"targetPort"
],
"type": "object"
}