Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Pods → Delete
AI-generatedOverview
This node interacts with Kubernetes clusters to manage Pods and other resources. Specifically, the 'Delete' operation deletes a specified Pod within a given namespace. This is useful for automating cleanup or removal of Pods in Kubernetes environments. For example, it can be used to delete a Pod that is no longer needed or to remove a faulty Pod to trigger a restart by the Kubernetes controller.
Use Case Examples
- Deleting a Pod named 'my-pod' in the 'default' namespace to free up resources or reset the application state.
- Automating Pod deletion as part of a CI/CD pipeline to ensure fresh deployments.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the Pod resides. Defaults to 'default' if not specified. |
| Resource Name | The name of the Pod to delete within the specified namespace. |
Output
JSON
json- The JSON response from the Kubernetes API after deleting the Pod, typically containing status or confirmation details.
Dependencies
- Requires Kubernetes API credentials to authenticate and authorize actions on the cluster.
Troubleshooting
- Error 'Resource name is required for delete operation!' occurs if the Pod name is not provided. Ensure the 'Resource Name' field is filled.
- Authentication errors may occur if Kubernetes credentials are missing or invalid. Verify the credentials are correctly configured.
- If the Pod does not exist or is already deleted, the Kubernetes API may return an error. Confirm the Pod name and namespace are correct.
Links
- Kubernetes Pods Documentation - Official Kubernetes documentation on Pods, explaining their lifecycle and management.
- Kubernetes API - Delete Pod - API reference for deleting a Pod in Kubernetes, detailing the request and response structure.