Kubernetes icon

Kubernetes

Interact with Kubernetes

Deployments → Patch

AI-generated

Overview

This node interacts with Kubernetes to perform various operations on Kubernetes resources, specifically supporting the 'Patch' operation for Deployments in this context. It allows users to update or modify existing Kubernetes resources by applying patch data. This is useful for dynamically changing configurations or attributes of deployments without recreating them. For example, you can update environment variables, resource limits, or other deployment specifications on the fly.

Use Case Examples

  1. Updating the image version of a deployment by patching the deployment resource with new image data.
  2. Modifying the number of replicas or other deployment settings using patch data.

Properties

Name Meaning
Image The container image to use, relevant for operations that involve running or modifying pods or deployments.
Namespace The Kubernetes namespace where the deployment resource resides.
Resource Name The name of the deployment resource to patch.
Patch Data The JSON object containing the patch data to apply to the deployment resource.

Output

JSON

  • json - The JSON response from the Kubernetes API after applying the patch operation, representing the updated deployment resource.

Dependencies

  • Requires Kubernetes API credentials for authentication and interaction with the Kubernetes cluster.

Troubleshooting

  • Ensure that the Kubernetes credentials are correctly configured and have sufficient permissions to patch deployment resources.
  • Verify that the 'Resource Name' and 'Namespace' parameters are correctly set and correspond to existing resources in the cluster.
  • Patch data must be valid JSON and conform to the Kubernetes API patch format; invalid JSON or incorrect patch structure will cause errors.
  • Common error: 'Resource name is required for patch operation!' indicates the resourceName parameter is missing or empty; provide a valid deployment name to resolve.

Links

Discussion