Kubernetes icon

Kubernetes

Interact with Kubernetes

Deployments → Delete

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, for the 'Deployments' resource with the 'Delete' operation, it deletes a specified deployment within a given namespace. This is useful for automating the removal of deployments in Kubernetes environments, such as cleaning up outdated or unnecessary deployments.

Use Case Examples

  1. Deleting a deployment named 'my-deployment' in the 'default' namespace to free up resources or remove an obsolete application version.
  2. Automating deployment lifecycle management by deleting deployments as part of a CI/CD pipeline.

Properties

Name Meaning
Namespace The Kubernetes namespace where the deployment resides. Defaults to 'default' if not specified.
Resource Name The name of the deployment resource to delete.

Output

JSON

  • json - The JSON response from the Kubernetes API after attempting to delete the deployment 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 deployment name is specified.
  • Authentication errors may occur if Kubernetes credentials are missing or invalid. Verify credentials are correctly configured.
  • If the deployment does not exist or the namespace is incorrect, the delete operation will fail. Confirm the resource name and namespace are accurate.

Links

Discussion