Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Services → Patch
AI-generatedOverview
This node interacts with Kubernetes clusters, allowing users to perform various operations on Kubernetes resources. Specifically, the 'Patch' operation enables users to modify existing Kubernetes resources by applying partial updates using JSON patch data. This is useful for updating configurations or properties of services, pods, deployments, and other Kubernetes resources without replacing the entire resource. Practical examples include updating service labels, changing deployment strategies, or modifying environment variables in pods.
Use Case Examples
- Updating a Kubernetes service to add or change labels using patch data.
- Modifying the configuration of a deployment to update container images or resource limits.
- Applying a patch to a pod to change environment variables or annotations.
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. |
| Resource Name | The name of the specific Kubernetes resource to operate on. |
| Patch Data | The JSON patch data used to apply partial updates to the resource. |
Output
JSON
json- The JSON response from the Kubernetes API after applying the patch operation, representing the updated resource state.
Dependencies
- Requires Kubernetes API credentials for authentication and interaction with the Kubernetes cluster.
Troubleshooting
- Ensure that the 'Resource Name' is provided; otherwise, the node will throw an error indicating the resource name is required for the patch operation.
- The 'Patch Data' must be valid JSON; invalid JSON will cause errors during execution.
- Kubernetes API credentials must be correctly configured and valid to avoid authentication errors.
- If the resource does not exist or the patch data is incompatible, the Kubernetes API may return errors which should be checked and handled.