blue-green-deploy

Implement blue-green deployments with Kubernetes and AWS traffic switching scripts.

1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts --skill blue-green-deploy-kalilurrahman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: blue-green-deploy
Source: https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts/tree/main/02-devops-infra/blue-green-deploy
Command: npx skills add https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts --skill blue-green-deploy-kalilurrahman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires boto3, httpx.

What problem does it solve? Releasing new application versions risks downtime and slow rollbacks when deployments update live environments in place. This Skill provides the configuration and scripts to run two parallel production environments, validate the new version before it receives traffic, and revert in seconds if health checks fail. ## Core Features & Use Cases - Kubernetes Blue-Green Setup: Generates paired blue/green Deployments with readiness and liveness probes, plus a Service whose selector performs the atomic traffic switch. - AWS ALB Traffic Switching: Provides a Python script using boto3 to wait for healthy targets, modify listener rules, monitor post-switch health, and auto-rollback on failures. - Database Migration Guidance: Defines backward-compatible migration patterns (additive changes, multi-phase renames) so both slots run safely during the switch window. - Use Case: A team releasing version 1.5.0 of an API deploys it to the green slot, runs smoke tests against pod IPs, patches the Service selector to green, monitors error rates for 30 minutes, and keeps blue running for instant rollback. ## Quick Start Ask the AI to generate a blue-green deployment setup for your Kubernetes service, including the traffic switch script and rollback procedure.

Frequently Asked Questions about blue-green-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up blue-green deployment in Kubernetes?

Create two Deployments labeled with slot: blue and slot: green, then point a single Service selector at the active slot. Switch traffic by patching the Service selector to the new slot after validating readiness and running smoke tests against the new pods.

How to switch traffic between AWS ALB target groups with boto3?

Use the elbv2 client to wait for targets in the new target group to become healthy, then call modify_rule on the listener's default rule to forward to the new target group ARN. Monitor health checks afterward and modify the rule back to the old target group if failures exceed the threshold.

What database migrations are safe during blue-green deployment?

Only backward-compatible migrations are safe because both blue and green versions run simultaneously during the switch. Adding nullable columns and concurrent indexes is safe; dropping or renaming columns must be split across multiple deploys with dual-write and backfill phases.

How does rollback work in blue-green deployment?

Rollback flips the traffic selector or load balancer rule back to the previous slot, which is still running the old version. Because the old environment stays alive for at least 30 minutes after the switch, rollback completes in seconds without redeploying anything.

When should I not use blue-green deployment?

Avoid blue-green when you cannot afford double infrastructure capacity, when your application relies on sticky sessions or local state, or when database changes cannot be made backward compatible. In those cases, consider canary or rolling deployments instead.