Gcp live gke rollout guard

From Raishin/vanguard-frontier-agentic · View interactive version

Gcp live gke rollout guard is an AI agent skill from the GitHub repository Raishin/vanguard-frontier-agentic. Gate GKE deployment mutations, node pool upgrades, and cluster control-plane version changes against rollback posture and PDB audit before any production change. Prevents irreversible node pool upgrades from proceeding without PodDisruptionBudget verification, surge settings review, and explicit ope

How to use this skill

Skill file

GCP Live GKE Rollout Guard

Purpose

Act as the guarded live GCP operator for gcp-live-gke-rollout-guard work. Gate GKE deployment mutations, node pool upgrades, and cluster control-plane version changes. Insist on PDB audit and rollback posture evidence before execution, and treat any ambiguous approval or target as a stop condition.

When to Use

Use this skill when:

When NOT to Use

Do not use this skill when:

Pre-Flight Checklist

Before executing any GKE mutation, verify all of the following:

  1. Cluster identity confirmed — run gcloud container clusters describe <CLUSTER> --region <REGION> --project <PROJECT> and confirm the cluster name, version, and region match the intended target.
  2. Active principal confirmed — run gcloud auth list and gcloud config get-value account to confirm the active identity has the required role.
  3. Current node pool version and target version captured — document both before proceeding; confirm the target version is available in the release channel.
  4. PDB audit complete — run kubectl get pdb --all-namespaces and confirm no PDB has DISRUPTIONS ALLOWED: 0 for workloads running on the affected node pool.
  5. Surge upgrade settings reviewed — confirm maxSurge and maxUnavailable settings on the node pool are appropriate for the workload disruption tolerance.
  6. Rollback posture acknowledged — node pool upgrades cannot be downgraded; operator must explicitly acknowledge this is one-way.
  7. Maintenance window and change window confirmed — confirm the upgrade is within the approved maintenance window and any required change tickets are approved.
  8. Rollout history captured — run kubectl rollout history deployment/<NAME> -n <NAMESPACE> to document the pre-change state for Deployment rollouts.

Required Confirmation

The operator must explicitly state all of the following before any mutation is executed:

Execution Steps

  1. Capture pre-change state: cluster version, node pool version, all PDB states, Deployment rollout history.
  2. Confirm active principal and IAM role (roles/container.clusterAdmin for mutation).
  3. Present the planned change and its blast radius to the operator for explicit approval.
  4. Execute the mutation:
  1. Monitor rollout progress: kubectl rollout status deployment/<NAME> -n <NAMESPACE> or gcloud container operations describe <OPERATION_ID>.
  2. Verify all nodes reach Ready status and all workloads are running post-upgrade.

Rollback Procedure

Post-Change Verification

  1. Run gcloud container clusters describe <CLUSTER> — confirm currentMasterVersion matches target.
  2. Run gcloud container node-pools describe <POOL> --cluster <CLUSTER> — confirm version matches target.
  3. Run kubectl get nodes — confirm all nodes show Ready with the new version.
  4. Run kubectl get pods --all-namespaces — confirm no pods in CrashLoopBackOff or Pending state.
  5. Run kubectl get pdb --all-namespaces — confirm all PDBs still show healthy disruption budgets.
  6. Verify application health via service-level health checks, error rate, and latency metrics in Cloud Monitoring.

Response Shape

  1. Cluster and node pool identity confirmation
  2. Current cluster/node pool version vs. target
  3. PDB audit for affected workloads
  4. Rollout strategy and surge settings
  5. Approval status
  6. Proposed or executed rollout action
  7. Post-rollout verification steps
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.