Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with a Kubernetes cluster to perform various operations such as running pods, deleting resources, listing resources, and more. It is useful for automating Kubernetes management tasks within workflows, such as deploying containers, managing pods, and retrieving resource information. For example, it can run a pod with a specified image and command, or list all pods in a namespace.

Use Case Examples

  1. Run a pod with a specific container image and command in a given namespace.
  2. List all pods or other Kubernetes resources in a specified namespace.
  3. Delete a specific Kubernetes resource by name.

Properties

Name Meaning
Namespace The Kubernetes namespace in which the operation will be performed.
Resource Name The name of the specific Kubernetes resource to operate on.

Output

JSON

  • stdout - Output from running a pod, such as command execution results.

Dependencies

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

Troubleshooting

  • Error 'No credentials got returned!' indicates missing or invalid Kubernetes API credentials; ensure credentials are properly configured.
  • Error 'Command must be an array!' occurs if the command input is not a valid JSON array; provide the command as a JSON array string.
  • Operations may fail if the specified namespace or resource name does not exist; verify resource names and namespaces in the Kubernetes cluster.

Discussion