Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, supporting various operations such as running pods, deleting resources, executing commands, listing resources, scaling, and more. Specifically, for the 'CronJobs' resource with the 'Scale' operation, it allows users to scale Kubernetes CronJobs by specifying the namespace and resource name. This is useful for automating the management of CronJobs in Kubernetes environments, such as adjusting the number of job instances based on workload or operational needs.

Use Case Examples

  1. Scaling a Kubernetes CronJob to increase or decrease the number of concurrent jobs running.
  2. Automating the scaling of CronJobs as part of a CI/CD pipeline to manage scheduled tasks dynamically.

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 scale within the specified namespace.

Output

JSON

  • stdout - Output or response from the Kubernetes API after performing the scale operation on the CronJob resource.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and accessible; missing credentials will cause the node to throw a 'No credentials got returned!' error.
  • The 'Resource Name' must be correctly specified; an incorrect or missing resource name may result in operation failure or errors from the Kubernetes API.
  • The 'Namespace' should be valid and exist in the Kubernetes cluster; otherwise, the operation may fail.

Discussion