verify_unused
verify_unused
Use this skill to safety-check whether a GKE or Kubernetes cluster is active or unused before executing any cluster deletion commands (DeleteCluster, gcloud container clusters delete, or kubectl delete). This prevents accidental data loss, service interruption, and destruction of active environments.
Critical Rule
[!IMPORTANT] NEVER delete a GKE or Kubernetes cluster without running this verification skill first or verifying that
deletion_policy: VERIFY_UNUSEDis enforced. If this check returns[ACTIVE](exit code1) or fails due to network/server timeout ([FAIL-CLOSE], exit code2), you must block the deletion and prompt the user for explicit confirmation or intervention.
Safety Criteria
The safety verification evaluates three core heuristics. If any condition is met, deletion is blocked:
1. External Exposure
- Failure Condition: Presence of $\ge 1$
Serviceof typeLoadBalancer, OR anyIngress,Gateway(Gateway API), orMultiClusterIngressresource in any namespace. - Rationale: These resources indicate the cluster is actively serving (or configured to serve) ingress traffic. Deleting the cluster would cause an immediate service disruption for users or connected systems.