Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, allowing users to perform various operations such as running pods, deleting resources, scaling deployments, and more. Specifically, for the 'Namespaces' resource with the 'Scale' operation, it enables scaling of Kubernetes namespaces or associated resources by adjusting the number of replicas or instances. This is useful in scenarios where you need to dynamically manage resource allocation in a Kubernetes environment, such as scaling up during high traffic or scaling down to save costs.

Use Case Examples

  1. Scaling a deployment within a specific namespace to handle increased load.
  2. Reducing the number of replicas in a namespace to optimize resource usage.

Properties

Name Meaning
Namespace The Kubernetes namespace where the resource resides. Defaults to 'default' if not specified.
Resource Name The name of the specific Kubernetes resource to scale within the namespace.

Output

JSON

  • stdout - Output from the Kubernetes operation, such as command execution results or status messages.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured; missing or invalid credentials will cause operation failure.
  • The 'Command' property must be a valid JSON array when running pods; otherwise, an error is thrown.
  • If the specified namespace or resource name does not exist, the operation will fail with an error from the Kubernetes API.

Discussion