create_service
Create a Kubernetes Service in a specified namespace using basic configuration or a raw YAML manifest.
Instructions
Creates a new Service. Use either basic configuration or provide a raw YAML manifest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port the service exposes | |
| type | No | Service type (ClusterIP, NodePort, LoadBalancer) | ClusterIP |
| dryRun | No | If true, simulates the action without making changes | |
| cluster | No | Target cluster name (default: 'default') | |
| selector | No | Label selector for the pods (e.g. { app: 'my-app' }) | |
| namespace | Yes | The Kubernetes namespace | |
| targetPort | No | Target port on the pod | |
| serviceName | No | The name of the Service to create | |
| yamlManifest | No | Full YAML manifest for advanced Service creation |