Kubernetes icon

Kubernetes

Interact with Kubernetes

Deployments → List

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources, specifically supporting the 'Deployments' resource with the 'List' operation among others. It is useful for automating Kubernetes management tasks such as listing deployments, running pods, scaling resources, fetching logs, and more. For example, it can list all deployments in a specified namespace, retrieve logs from a deployment's pod, or scale a deployment to a desired number of replicas.

Use Case Examples

  1. List all deployments in the 'default' namespace to monitor active deployments.
  2. Scale a deployment to increase or decrease the number of replicas based on load.
  3. Fetch logs from a deployment's pod for debugging purposes.

Properties

Name Meaning
Namespace The Kubernetes namespace where the deployment resources are located. Defaults to 'default' if not specified.
Resource Name The specific name of the deployment resource to operate on. Required for operations that target a specific deployment.

Output

JSON

  • json - The JSON output contains the result of the Kubernetes operation, such as a list of deployments or details of a specific deployment.

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 'No credentials got returned!'.
  • Operations that require a specific resource name (e.g., get, delete, logs, scale, patch, exec, restart, port-forward) will throw an error if the resource name is not provided.
  • The 'command' and 'env' parameters for the 'run' operation must be valid JSON arrays; otherwise, an error will be thrown.
  • If an unsupported operation is specified, the node will throw an error indicating the operation is not implemented.

Discussion