Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources including CronJobs. For the 'Logs' operation on CronJobs, it retrieves the logs of a specified CronJob within a given namespace. This is useful for monitoring and debugging scheduled jobs in Kubernetes environments.

Use Case Examples

  1. Retrieve logs from a specific CronJob in the 'default' namespace to troubleshoot job execution issues.
  2. Monitor the output of CronJobs to verify scheduled tasks are running as expected.

Properties

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

Output

JSON

  • logs - The logs output from the specified CronJob.

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 'Resource Name' or 'Namespace' is incorrect or the CronJob does not exist, the node may fail to retrieve logs. Verify the resource name and namespace are correct.
  • The node expects the 'command' parameter as a JSON array for certain operations; providing an invalid format will cause an error.

Links

Discussion