Kubernetes icon

Kubernetes

Interact with Kubernetes

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

  1. List all services in the 'default' namespace to monitor available network services.
  2. 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

Discussion