k8s_expose_resource
Expose a deployment or pod as a new Kubernetes Service, selecting LoadBalancer for external access or NodePort for node-level access.
Instructions
Expose a deployment or pod as a new Kubernetes Service. Creates a Service that routes traffic to the target resource. Specify type='LoadBalancer' for external access or type='NodePort' for node-level access.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"context": "<context>",
"resource_type": "<resource_type>",
"name": "<name>",
"port": "<port>"
},
"name": "k8s_expose_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| port | Yes | ||
| type | No | ||
| labels | No | ||
| context | Yes | ||
| protocol | No | ||
| selector | No | ||
| namespace | No | ||
| target_port | No | ||
| service_name | No | ||
| resource_type | Yes |