Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Overview
This node interacts with Kubernetes clusters, allowing users to perform various operations on Kubernetes resources such as namespaces, pods, services, deployments, and more. Specifically, for the 'Namespaces' resource with the 'Get' operation, it retrieves details about a specified namespace within a Kubernetes cluster. This node is useful for automating Kubernetes management tasks, such as fetching resource information, running pods, deleting resources, and more, directly within an n8n workflow.
Use Case Examples
- Retrieve details of a specific Kubernetes namespace to monitor its status or configuration.
- Automate the management of Kubernetes resources by integrating this node to get resource information as part of a larger workflow.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace to target for the operation. Defaults to 'default' if not specified. |
| Resource Name | The name of the specific resource within the namespace to operate on, such as the name of a namespace or pod. |
Output
JSON
metadata- Metadata information of the Kubernetes resource, such as name, labels, and annotations.spec- Specification details of the Kubernetes resource.status- Current status information of the Kubernetes resource.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- Ensure that valid Kubernetes API credentials are provided; otherwise, the node will throw an error indicating no credentials were returned.
- The 'command' parameter for operations like 'run' must be a valid JSON array; otherwise, an error will be thrown.
- If the specified namespace or resource name does not exist, the Kubernetes API will return an error, which should be handled appropriately.