Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources. For the 'Scale' operation on the 'Services' resource, it allows users to scale a Kubernetes service within a specified namespace. This is useful for dynamically adjusting the number of service instances to handle varying loads or deployment requirements. Practical examples include scaling a service up during high traffic periods or scaling down to save resources during low usage.

Use Case Examples

  1. Scaling a Kubernetes service named 'my-service' in the 'default' namespace to increase or decrease its replicas.
  2. Automating service scaling as part of a CI/CD pipeline to manage resource allocation.

Properties

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

Output

JSON

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

Dependencies

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

Troubleshooting

  • Common issues include missing or invalid Kubernetes credentials, which will cause the node to throw an error indicating no credentials were returned.
  • If the 'Resource Name' or 'Namespace' is incorrect or the service does not exist, the operation will fail with an error from the Kubernetes API.
  • Ensure the 'Resource Name' is correctly specified and the Kubernetes cluster is accessible with the provided credentials.

Discussion