Create service
k8s_create_serviceDeploy a Kubernetes service from a container image with a name, optional ports, mounts, and replica count. Use it to expose workloads and run them against a chosen multi-context pool.
Instructions
Invoke the create_service operation.
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": {
"name": "<name>",
"image": "<image>"
},
"name": "k8s_create_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| image | Yes | ||
| ports | No | ||
| mounts | No | ||
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| replicas | No |