Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources such as Deployments. For the 'Get' operation on Deployments, it retrieves details about a specified deployment within a given namespace. This node is useful for automating Kubernetes management tasks like querying deployment status or configuration.

Use Case Examples

  1. Retrieve details of a specific deployment in the 'default' namespace by specifying the deployment name and namespace.
  2. Use the node to get information about a deployment before performing updates or scaling operations.

Properties

Name Meaning
Namespace The Kubernetes namespace where the deployment resource is located.
Resource Name The name of the specific deployment resource to retrieve.

Output

JSON

  • metadata - Metadata of the deployment resource, including name, namespace, labels, etc.
  • spec - Specification details of the deployment, such as replicas, selector, template, etc.
  • status - Current status of the deployment, including available replicas, conditions, etc.

Dependencies

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

Troubleshooting

  • If no credentials are provided or invalid, the node throws an error 'No credentials got returned!'. Ensure valid Kubernetes API credentials are configured.
  • If the resource name or namespace is incorrect or the deployment does not exist, the node may return an error or empty result. Verify the resource name and namespace are correct.
  • The node expects the 'command' parameter as an array for certain operations; providing invalid JSON or non-array values will cause errors.

Discussion