Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Overview
This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, for the 'Services' resource with the 'List' operation, it retrieves a list of services within a specified namespace. This node is useful for automating Kubernetes management tasks such as listing, running, deleting, or scaling resources. For example, it can be used to list all services in a namespace to monitor or manage network endpoints in a Kubernetes environment.
Use Case Examples
- List all services in the 'default' namespace to monitor available network services.
- Automate retrieval of service lists across multiple namespaces for auditing or reporting.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace in which to perform the operation, e.g., 'default'. |
| Resource Name | The specific name of the resource to target, if applicable, for operations that require it. |
Output
JSON
metadata- Metadata about the Kubernetes services retrieved, such as resource version and self-link.items- An array of service objects representing each Kubernetes service in the specified namespace.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- If no credentials are provided or credentials are invalid, the node throws an error 'No credentials got returned!'. Ensure valid Kubernetes API credentials are configured.
- If the 'command' parameter is expected to be an array but is not, an error 'Command must be an array!' is thrown. Validate the input format for commands.
- Ensure the specified namespace exists in the Kubernetes cluster to avoid errors when listing services.
Links
- Kubernetes Services Documentation - Official Kubernetes documentation on services, explaining their purpose and usage.
- kubectl Command Reference - Reference for Kubernetes command-line tool, useful for understanding operations like listing services.