Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, allowing users to perform various operations on Kubernetes resources. Specifically, for the 'Namespaces' resource with the 'List' operation, it retrieves a list of namespaces within a specified Kubernetes cluster. This is useful for managing and organizing cluster resources by namespace, enabling users to view all namespaces available in their cluster environment.

Use Case Examples

  1. Listing all namespaces in a Kubernetes cluster to monitor resource allocation and organization.
  2. Retrieving namespaces to dynamically configure workflows based on available namespaces.

Properties

Name Meaning
Namespace Specifies the Kubernetes namespace to operate within, defaulting to 'default' if not provided.
Resource Name The name of the specific resource within the namespace to target for operations, if applicable.

Output

JSON

  • namespaces - An array or list of Kubernetes namespaces retrieved from the 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.
  • The node expects the 'command' parameter to be a JSON array for certain operations; providing a non-array will cause an error.
  • If the specified namespace or resource name does not exist, the node may return an empty list or an error depending on the Kubernetes API response.

Links

Discussion