Kubernetes Clusters - Delete Object
Kubernetes Clusters - Delete Object
Available in PagerDuty Runbook Automation Commercial products.
Overview
This plugin deletes an object of a selected kind within a Kubernetes cluster. It is designed to work in conjunction with the AWS EKS, GCP GKE, and Azure AKS Resource Model Source plugins.
Configuration
Required Fields
- Name: The name of the object to be deleted, such as Pod name or Deployment name.
- Namespace: The namespace where the object resides. Default is
default
.
Optional Fields
- Object Type: Select the type of object to delete (e.g., Pods, ConfigMaps, Deployments). Default is "Pods".
- Output Format: Choose the format for the output (JSON or YAML). Default is JSON.
Usage
- Select the desired object type from the dropdown menu.
- Provide the name of the object you want to delete.
- Specify the namespace where the object is located.
- Choose the preferred output format.
Authentication
Kubernetes Clusters plugins operate on a per-cluster basis and authenticate in one of two ways, as configured in the Resource Model Plugin used to fetch the nodes. This configuration is controlled by the Use Pod Service Account for Node Steps
option:
When disabled, the plugin uses the cloud provider credentials set in the resource model to retrieve the
kube-config for the targeted cluster.When enabled, the Enterprise Runner must be placed in the cluster and uses its pod's K8s service account for authentication.