Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, allowing users to perform various operations on Kubernetes resources. Specifically, for the 'Deployments' resource with the 'Scale' operation, it enables scaling the number of replicas of a deployment within a specified namespace. This is useful for dynamically adjusting the number of running instances of an application based on demand or other criteria.

Use Case Examples

  1. Scaling a deployment named 'my-app' in the 'default' namespace to increase or decrease the number of replicas.
  2. Automating scaling operations as part of a CI/CD pipeline to manage application availability.

Properties

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

Output

JSON

  • status - The status or result of the scale operation on the deployment 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 an error.
  • Verify that the 'Resource Name' and 'Namespace' are correctly specified and that the deployment exists in the cluster.
  • Common error: 'No credentials got returned!' indicates missing or misconfigured Kubernetes API credentials.
  • If the scale operation fails, check Kubernetes cluster permissions and network connectivity.

Links

Discussion