create_route
Create an OpenShift Route by exposing a Service, with optional TLS termination and path settings.
Instructions
Create an OpenShift Route by exposing a Service.
Uses 'oc expose' to create a basic route and then patches TLS termination and path if required.
Args: name: Route name. namespace: Namespace. service: Name of the Service to expose. host: Hostname for the route (empty = let the router assign one). path: URL path prefix (default "/"). tls_termination: TLS termination type: "edge", "passthrough", "reencrypt", or "" (no TLS). port: Target port name or number (empty = first port from Service). cluster: Named cluster to target (empty = default).
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>",
"namespace": "<namespace>",
"service": "<service>"
},
"name": "create_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| name | Yes | ||
| path | No | / | |
| port | No | ||
| cluster | No | ||
| service | Yes | ||
| namespace | Yes | ||
| tls_termination | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |