service_create
Create and configure Kubernetes Services in a specified namespace using the k8s-pilot MCP server. Define ports, selectors, and service type to manage access to cluster resources efficiently.
Instructions
Create a Service in the specified namespace.
Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Service name selector: A dictionary of labels to select the target pods ports: A list of ports (e.g., [{"port": 80, "target_port": 8080}]) service_type: The type of the Service (default is "ClusterIP")
Returns: Status of the creation operation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_name | Yes | ||
name | Yes | ||
namespace | Yes | ||
ports | Yes | ||
selector | Yes | ||
service_type | No | ClusterIP |