rollback-deployment

Roll back a Kubernetes deployment to a previous revision with safety checks. Use when: user wants to rollback, revert, or undo a deployment.

harumi-io/harumi-devops-plugin1 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: rollback-deployment
description: Roll back a Kubernetes deployment to a previous revision with safety checks. Use when: user wants to rollback, revert, or undo a deployment.
license: MIT
---

# Rollback Deployment

Roll back a deployment to a previous revision.

## Inputs

Ask for these if not provided:

1. **Deployment name** (e.g., "my-api")
2. **Namespace**
3. **Target cluster** — from the active repo config `kubernetes.clusters[]` list
4. **Target revision** — optional, defaults to previous revision

## Execution Steps

### Step 1: Inspect current state

```bash
# Current rollout status
kubectl rollout status deployment/<deployment-name> -n <namespace> --context <context>

# Current replica set
kubectl get replicaset -n <namespace> --context <context> -l app.kubernetes.io/name=<deployment-name>

# Revision history
kubectl rollout history deployment/<deployment-name> -n <namespace> --context <context>
```

### Step 2: Show revision details

If the user hasn't specified a target revision, show the last 5 revisions with their details:

```bash
kubectl rollout history deployment/<deployment-name> -n <namespace> --context <context> --revision=<N>
```

Ask the user which revision to roll back to.

### Step 3: Show what will change

```bash
# Compare current vs target revision
kubectl rollout history deployment/<deployment-name> -n <namespace> --context <context> --revision=<current>
kubectl rollout history deployment/<deployment-name> -n <namespace> --context <context> --revision=<target>
```

Present a clear diff of what changes (image tag, env vars, resource limits, etc.).

### Step 4: Hand off

```
Rollback ready!

Execute:
kubectl rollout undo deployment/<deployment-name> -n <namespace> --context <context> --to-revision=<target>

What this will do:
- Roll back <deployment-name> from revision <current> to revision <target>
- [Specific changes: image tag, env vars, etc.]

Verification:
kubectl rollout status deployment/<deployment-name> -n <namespace> --context <context>
kubectl get pods -n <namespace> --context <context> -l app.kubernetes.io/name=<deployment-name>
```

More Deployment & CI/CD skills

finetuning

microsoft/azure-skills

Fine-tune models on Microsoft Foundry using SFT (supervised), DPO (preference), or RFT (reinforcement with graders). Covers dataset preparation, training job submission, deployment, and evaluation. USE FOR: fine-tune, SFT, DPO, RFT, training data, grader, distillation, fine-tuned model, training job, large file upload, calibrate grader, deploy fine-tuned model, evaluate fine-tuned model. DO NOT USE FOR: general model deployment without fine-tuning (use deploy-model), agent creation (use agents), prompt optimization without training (use prompt-optimizer).

323.2k

prisma-compute

prisma/skills

Prisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `prisma.compute.ts`, `defineComputeConfig`, deploying or hosting a Prisma app, `@prisma/cli app deploy`, `compute:deploy`, `create-prisma --deploy`, `PRISMA_SERVICE_TOKEN`, Compute auth/workspaces, apps/deployments/build logs/domains, localhost vs `0.0.0.0`, deploy port binding, or framework deploy readiness for Hono, Elysia, Next.js, TanStack Start, Astro, Nuxt, Svelte, Nest, Turborepo, or custom/prebuilt artifacts.

231.4k

azure-quotas

microsoft/azure-skills

Check/manage Azure quotas and usage across providers. For deployment planning, capacity validation, region selection. WHEN: \"check quotas\", \"service limits\", \"current usage\", \"request quota increase\", \"quota exceeded\", \"validate capacity\", \"regional availability\", \"provisioning limits\", \"vCPU limit\", \"how many vCPUs available in my subscription\".

187.6k

← All Deployment & CI/CD skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY