service_create
Creates a Kubernetes Service in a namespace with a label selector, port list, and optional type (default ClusterIP).
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 |
|---|---|---|---|
| name | Yes | ||
| ports | Yes | ||
| selector | Yes | ||
| namespace | Yes | ||
| context_name | Yes | ||
| service_type | No | ClusterIP |