Actions90
- Jobs Actions
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- CronJobs Actions
Overview
This node allows interaction with Kubernetes resources through various operations, including patching services. Specifically, the Patch operation on the Services resource enables users to modify existing Kubernetes Service objects in a specified namespace. This is useful for updating service configurations such as ports, selectors, or labels without recreating the service.
Common scenarios include:
- Updating the configuration of a running service to change its behavior.
- Applying incremental changes to services during deployment pipelines.
- Automating service updates as part of infrastructure management workflows.
For example, you might patch a service to add a new port or update the selector labels to route traffic differently.
Properties
| Name | Meaning |
|---|---|
| Image | The container image name used when running or executing pods; relevant for some operations including patch. |
| Namespace | The Kubernetes namespace where the target service resides. Defaults to "default". |
| Resource Name | The name of the specific Kubernetes Service resource to patch. |
Output
The node outputs JSON data representing the result of the patch operation on the Kubernetes Service resource. This typically includes the updated state of the service object after the patch has been applied.
If the operation involves running pods or executing commands (not directly related to patch), the output may include standard output (stdout) from those pod executions.
No binary data output is indicated for the patch operation.
Dependencies
- Requires an API authentication token or credentials to access the Kubernetes cluster.
- The node depends on a Kubernetes client utility internally to communicate with the Kubernetes API.
- Proper permissions must be granted to the credentials used, allowing patch operations on Services within the specified namespace.
Troubleshooting
No credentials got returned!
This error indicates missing or misconfigured Kubernetes API credentials. Ensure that valid credentials are provided and properly configured in n8n.Command must be an array!
Although not directly related to patch, this error can occur if the command input (for run/exec operations) is not a valid JSON array. For patch, ensure inputs conform to expected types.Resource not found or permission denied
If the specified service name or namespace does not exist or the credentials lack sufficient permissions, the patch operation will fail. Verify resource names, namespaces, and RBAC permissions.Invalid patch format
Since the source code snippet does not show explicit patch payload handling, ensure that the patch data sent to the node is correctly formatted according to Kubernetes API expectations.