Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Jobs → Patch
AI-generatedOverview
This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources, specifically supporting the 'Patch' operation for the 'Jobs' resource in this context. It allows users to modify existing Kubernetes Job resources by applying JSON patch data. This is useful for updating configurations or properties of running jobs without recreating them. Practical examples include changing job parameters, updating environment variables, or modifying job metadata dynamically within an automation workflow.
Use Case Examples
- Updating a Kubernetes Job's metadata or spec by applying a JSON patch to change its behavior or configuration.
- Modifying environment variables or container images of a running Job resource in a Kubernetes cluster.
Properties
| Name | Meaning |
|---|---|
| Image | The container image associated with the job, used in operations like run, restart, exec, and patch. |
| Namespace | The Kubernetes namespace where the Job resource resides. |
| Resource Name | The name of the specific Job resource to patch. |
| Patch Data | The JSON patch data to apply to the Job resource, defining the changes to be made. |
Output
JSON
json- The JSON response from the Kubernetes API after applying the patch to the Job resource.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- Ensure that the Kubernetes credentials provided are valid and have sufficient permissions to patch Job resources.
- Verify that the 'Resource Name' is correctly specified; missing or incorrect names will cause errors.
- The 'Patch Data' must be valid JSON; malformed JSON will cause the operation to fail.
- Common error: 'Resource name is required for patch operation!' indicates that the resourceName parameter was not provided.
- If the patch operation fails, check the Kubernetes API server logs and permissions for more details.
Links
- Kubernetes Patch Documentation - Official Kubernetes documentation on how to patch resources.
- Kubernetes Jobs - Overview and details about Kubernetes Job resources.