list_services
List Kubernetes services in a namespace to view their types and exposed ports, helping inspect network ingress and internal service endpoints.
Instructions
List Kubernetes services, exposed ports, and service types within a namespace.
Usage Guidelines
Use this tool when checking network ingress, internal DNS resolution, or service endpoints.
Complement with
list_podsto confirm underlying backend endpoints exist.
Behavioral Transparency
Read-only query using CoreV1Api.
Lists service name, type (ClusterIP, NodePort, LoadBalancer), and mapped ports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | Target Kubernetes namespace to inspect services in. Defaults to 'default'. | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |