Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters, specifically supporting operations on various Kubernetes resources including Deployments. The 'Patch' operation allows users to modify existing Kubernetes resources by applying partial updates. This is useful for updating configurations or settings of deployments without replacing the entire resource. For example, you can patch a deployment to update its container image or change environment variables.

Use Case Examples

  1. Patch a Kubernetes deployment to update the container image to a new version.
  2. Modify the number of replicas in a deployment by patching the deployment resource.

Properties

Name Meaning
Image The container image to use, relevant for operations like run, restart, exec, and patch.
Namespace The Kubernetes namespace where the resource resides, defaulting to 'default' if not specified.
Resource Name The name of the specific Kubernetes resource (e.g., deployment) to operate on.

Output

JSON

  • stdout - The output or response from the Kubernetes API after performing the patch operation, typically containing the result of the patch request.

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 'No credentials got returned!'.
  • The 'command' parameter must be a valid JSON array when used; otherwise, an error 'Command must be an array!' will be thrown.
  • Verify that the resource name and namespace are correctly specified to avoid resource not found errors.

Discussion