Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes to perform various operations on Kubernetes resources, specifically supporting operations like running jobs, fetching logs, deleting resources, and more. For the 'Logs' operation on 'Jobs', it retrieves the logs of a specified job within a given namespace. This is useful for monitoring job execution, debugging, and auditing job outputs in Kubernetes environments.

Use Case Examples

  1. Fetching logs of a specific Kubernetes job to monitor its execution output.
  2. Deleting a Kubernetes job after completion or failure.
  3. Running a new job with a specified container image and command.

Properties

Name Meaning
Namespace The Kubernetes namespace where the job resource is located.
Resource Name The name of the specific job resource to operate on.

Output

JSON

  • logs - The logs output of the specified Kubernetes job.

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.
  • If the 'command' parameter is not an array when running a job, an error 'Command must be an array!' is thrown. Provide the command as a JSON array.
  • Ensure the specified namespace and resource name exist in the Kubernetes cluster to avoid resource not found errors.

Links

Discussion