Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources such as Pods. For the 'Exec' operation on Pods, it allows executing commands inside a running Pod within a specified namespace. This is useful for debugging, running scripts, or managing containerized applications dynamically within Kubernetes environments.

Use Case Examples

  1. Executing a shell command inside a specific Pod to troubleshoot an application.
  2. Running a script inside a Pod to perform maintenance tasks without redeploying the container.

Properties

Name Meaning
Image The container image to use when running or executing commands in a Pod.
Namespace The Kubernetes namespace where the Pod resides or where the operation will be performed.
Resource Name The name of the specific Kubernetes resource (e.g., Pod) to target for the operation.

Output

JSON

  • stdout - The standard output resulting from executing the command inside the Pod.

Dependencies

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

Troubleshooting

  • If no credentials are provided or invalid, the node throws an error 'No credentials got returned!'. Ensure valid Kubernetes API credentials are configured.
  • The 'command' parameter must be a JSON array; otherwise, an error 'Command must be an array!' is thrown. Validate the command input format before execution.

Discussion