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, specifically supporting operations on various Kubernetes resources such as Services. The 'Delete' operation allows users to delete a specified Kubernetes resource within a given namespace. This is useful for automating the management and cleanup of Kubernetes resources, such as removing obsolete or unwanted services programmatically.
Use Case Examples
- Deleting a Kubernetes Service named 'my-service' in the 'default' namespace to clean up resources after an application is decommissioned.
- Automating the deletion of services in a CI/CD pipeline to ensure a fresh deployment environment.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the target resource (e.g., Service) resides. Defaults to 'default' if not specified. |
| Resource Name | The name of the specific Kubernetes resource (e.g., Service) to be deleted within the specified namespace. |
Output
JSON
status- The status or result of the delete operation, typically indicating success or failure.metadata- Metadata of the deleted resource, if returned by the Kubernetes API.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- Ensure that valid Kubernetes credentials are provided; otherwise, the node will throw an error indicating no credentials were returned.
- The 'Resource Name' must be specified and valid; otherwise, the delete operation will fail.
- The namespace must exist in the Kubernetes cluster; using a non-existent namespace will cause errors.
- Common error messages include authentication failures, resource not found, or permission denied errors. Verify credentials, resource names, and user permissions in the Kubernetes cluster.
Links
- Kubernetes API - Delete Namespace - Official Kubernetes API documentation for deleting resources, useful for understanding the delete operation.
- Kubernetes Namespaces - Documentation on Kubernetes namespaces, explaining their purpose and usage.