Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, allowing users to perform various operations such as running pods, deleting resources, executing commands, and patching services. Specifically, the 'Patch' operation enables updating Kubernetes services by specifying the namespace and resource name. This node is useful for automating Kubernetes management tasks within workflows, such as updating service configurations or scaling deployments.

Use Case Examples

  1. Patching a Kubernetes service to update its configuration in a specific namespace.
  2. Running a pod with a specified image and command in a Kubernetes cluster.
  3. Deleting a Kubernetes resource by name within a namespace.

Properties

Name Meaning
Image The container image to use when running or patching a pod or service.
Namespace The Kubernetes namespace where the resource is located or the operation will be performed.
Resource Name The name of the Kubernetes resource (e.g., service) to operate on, such as patching or deleting.

Output

JSON

  • stdout - Output from running a pod or executing a command in Kubernetes.

Dependencies

  • Requires Kubernetes API credentials for authentication to interact with the cluster.

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured; missing credentials will cause the node to throw a 'No credentials got returned!' error.
  • The 'command' parameter must be a valid JSON array when running pods; otherwise, an error 'Command must be an array!' will be thrown.
  • Verify that the specified namespace and resource name exist in the Kubernetes cluster to avoid operation failures.

Discussion