Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, allowing users to perform various operations on Kubernetes resources such as CronJobs. Specifically, for the 'Get' operation on the 'CronJobs' resource, it retrieves details about a specified CronJob within a given namespace. This node is useful for automating Kubernetes management tasks, such as fetching resource details for monitoring or integration with other workflows.

Use Case Examples

  1. Retrieve details of a specific CronJob in the 'default' namespace to monitor its configuration and status.
  2. Fetch information about a CronJob before performing updates or debugging issues in a Kubernetes cluster.

Properties

Name Meaning
Namespace The Kubernetes namespace where the CronJob resource is located. Defaults to 'default' if not specified.
Resource Name The name of the specific CronJob resource to retrieve details for within the specified namespace.

Output

JSON

  • metadata - Metadata information of the CronJob resource, such as name, namespace, labels, and annotations.
  • spec - Specification details of the CronJob, including schedule, job template, and concurrency policy.
  • status - Current status of the CronJob, including active jobs, last schedule time, and conditions.

Dependencies

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

Troubleshooting

  • Ensure that valid Kubernetes API credentials are provided; otherwise, the node will throw an error indicating missing credentials.
  • Verify that the specified namespace and resource name exist in the Kubernetes cluster to avoid errors related to resource not found.
  • The node expects the 'command' parameter to be an array when running pods; providing incorrect formats will cause errors.

Links

Discussion