Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, supporting various operations on Kubernetes resources such as ReplicaSets. Specifically, for the 'Scale' operation on ReplicaSets, it allows users to adjust the number of replicas in a specified namespace and resource name. This is useful for dynamically managing application scaling in Kubernetes environments, for example, increasing replicas during high traffic or reducing them to save resources.

Use Case Examples

  1. Scaling a ReplicaSet named 'my-replicaset' in the 'default' namespace to increase the number of pod replicas.
  2. Scaling down a ReplicaSet to zero replicas for maintenance or cost-saving purposes.

Properties

Name Meaning
Namespace The Kubernetes namespace where the ReplicaSet resource is located.
Resource Name The name of the ReplicaSet resource to scale.

Output

JSON

  • status - The status or result of the scale operation on the ReplicaSet.

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 an error.
  • Verify that the 'Namespace' and 'Resource Name' are correctly specified; incorrect values may lead to resource not found errors.
  • The node expects the 'command' parameter as a JSON array for certain operations; providing invalid JSON or incorrect types will cause errors.

Discussion