Kubernetes icon

Kubernetes

Interact with Kubernetes

DaemonSets → Scale

AI-generated

Overview

This node interacts with Kubernetes to perform various operations on Kubernetes resources. Specifically, for the DaemonSets resource with the Scale operation, it allows users to scale the number of replicas of a DaemonSet within a specified namespace. This is useful for managing workload distribution and resource allocation in a Kubernetes cluster. For example, a user can increase or decrease the number of DaemonSet replicas to handle varying loads or to perform maintenance.

Use Case Examples

  1. Scaling a DaemonSet named 'my-daemonset' in the 'default' namespace to 3 replicas to increase workload handling capacity.
  2. Reducing the replicas of a DaemonSet to 1 during low traffic periods to save resources.

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 scale.
Replicas The desired number of replicas to scale the DaemonSet to.

Output

JSON

  • json - The response from the Kubernetes API after scaling the DaemonSet, typically containing the updated resource details or status.

Dependencies

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

Troubleshooting

  • Ensure that the Kubernetes credentials provided have sufficient permissions to scale DaemonSets in the specified namespace.
  • Verify that the resource name of the DaemonSet is correct and exists in the given namespace to avoid 'Resource name is required' or 'not found' errors.
  • Check that the replicas value is a valid number and within acceptable limits for your cluster to prevent scaling errors.

Links

Discussion