Kubernetes icon

Kubernetes

Interact with Kubernetes

Services → List

AI-generated

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 is useful for scenarios where you need to monitor, manage, or automate workflows involving Kubernetes services, such as listing all services in a namespace to check their status or to integrate with other automation tasks.

Use Case Examples

  1. Listing all services in the 'default' namespace to monitor available services.
  2. Automating the retrieval of service lists for reporting or auditing purposes.

Properties

Name Meaning
Namespace The Kubernetes namespace from which to list the services. Defaults to 'default' if not specified.
Resource Name The name of the specific resource, not typically required for listing services but available for other operations.

Output

JSON

  • json - The JSON object containing the list of services retrieved from the Kubernetes cluster.

Dependencies

  • Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and valid; otherwise, the node will throw a 'No credentials got returned!' error.
  • If the 'Namespace' parameter is incorrect or does not exist, the node may return an empty list or an error from the Kubernetes API.
  • The 'Resource Name' is not required for the 'List' operation but must be provided for other operations; missing it when required will cause an error indicating the resource name is required.

Discussion