Actions90
- Namespaces Actions
- Pods Actions
- Services Actions
- Deployments Actions
- ReplicaSets Actions
- StatefulSets Actions
- DaemonSets Actions
- Jobs Actions
- CronJobs Actions
Services → Delete
AI-generatedOverview
This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, for the 'Services' resource with the 'Delete' operation, it deletes a specified Kubernetes service within a given namespace. This is useful for automating the management and cleanup of Kubernetes services in CI/CD pipelines or infrastructure automation workflows.
Use Case Examples
- Deleting a Kubernetes service named 'my-service' in the 'default' namespace to clean up unused resources.
- Automating the removal of services as part of a deployment rollback process.
Properties
| Name | Meaning |
|---|---|
| Namespace | The Kubernetes namespace where the service to be deleted is located. Defaults to 'default' if not specified. |
| Resource Name | The name of the Kubernetes service resource to delete. |
Output
JSON
json- The JSON response from the Kubernetes API after attempting to delete the specified service resource.
Dependencies
- Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.
Troubleshooting
- Error 'Resource name is required for delete operation!' occurs if the 'Resource Name' property is not provided. Ensure the service name is specified.
- Authentication errors may occur if Kubernetes credentials are missing or invalid. Verify the credentials configuration.
- If the specified service does not exist or the namespace is incorrect, the deletion will fail. Confirm the resource name and namespace are correct.
Links
- Kubernetes Services Documentation - Official Kubernetes documentation on services, useful for understanding the resource being managed.
- Kubernetes API Reference for Deleting Services - API reference for the delete operation on Kubernetes services.