Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources, including scaling DaemonSets. Specifically, the 'Scale' operation allows users to adjust the number of desired pods in a DaemonSet within a specified namespace. This is useful for managing workload distribution and resource allocation in a Kubernetes environment. For example, scaling a DaemonSet can help increase or decrease the number of daemon pods running on each node to match the current demand.

Use Case Examples

  1. Scaling a DaemonSet named 'my-daemonset' in the 'default' namespace to increase the number of pods for better resource utilization.
  2. Reducing the number of pods in a DaemonSet to save resources during low traffic periods.

Properties

Name Meaning
Namespace The Kubernetes namespace where the DaemonSet resource is located. Defaults to 'default' if not specified.
Resource Name The name of the DaemonSet resource to be scaled within the specified namespace.

Output

JSON

  • status - The status of the scale operation, typically including details about the updated DaemonSet.

Dependencies

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

Troubleshooting

  • Ensure that the Kubernetes credentials provided are valid and have sufficient permissions to scale DaemonSets.
  • Verify that the specified namespace and DaemonSet resource name exist in the Kubernetes cluster.
  • Common error: 'No credentials got returned!' indicates missing or misconfigured Kubernetes credentials; verify credential setup in n8n.
  • If the command property is used (in other operations), ensure it is a valid JSON array to avoid errors.

Links

Discussion