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 'Patch' operation on Pods, it allows modifying existing Pod resources within a specified namespace. This is useful for updating Pod configurations dynamically without recreating them. Practical examples include patching Pod labels, annotations, or container specifications to adjust behavior or resource allocation on the fly.

Use Case Examples

  1. Patching a Pod to update its labels for better organization or selection by services.
  2. Modifying container environment variables within a Pod to change application behavior without downtime.

Properties

Name Meaning
Image The container image to use, relevant for operations like run, restart, exec, and patch on Pods.
Namespace The Kubernetes namespace where the Pod resource resides, defaulting to 'default' if not specified.
Resource Name The name of the specific Pod resource to operate on within the given namespace.

Output

JSON

  • stdout - The standard output from running a Pod or executing commands within it, returned as JSON.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and accessible; missing credentials will cause operation failure.
  • The 'command' parameter must be a valid JSON array when running Pods; otherwise, an error is thrown.
  • Namespace and resource names must be accurate to avoid resource not found errors.

Discussion