Kubernetes icon

Kubernetes

Interact with Kubernetes

Services → Delete

AI-generated

Overview

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

  1. Deleting a Kubernetes service named 'my-service' in the 'default' namespace to clean up unused resources.
  2. 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

Discussion