About canary-deployment
A skill for planning and implementing canary deployments, gradually exposing a new version to a small share of users and evaluating metrics. Its references cover Istio, Kubernetes-native scripts, metrics-based analysis, and automated promotion.
Key features
- 01Gradual rollout to a user subset
- 02Metrics-based issue monitoring
- 03Threshold-based rollback or promotion
- 04Istio and Kubernetes guides
- 05Deployment best practices
Use cases
- 01Testing a new version with live traffic
- 02Reducing impact during releases
- 03Rolling back when errors exceed thresholds
- 04Promoting releases based on metrics
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ aj-geddes/ useful-ai-prompts --skill canary-deploymentAfter installing, type/canary-deploymentin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/automated-canary-promotion.mdistio-based-canary-deployment.mdkubernetes-native-canary-script.mdmetrics-based-canary-analysis.mdscripts/scaffold-tests.shtemplates/test-template.jsDetails
From the project READMECanary Deployment
Table of Contents
Overview
Deploy new versions gradually to a small percentage of users, monitor metrics for issues, and automatically rollback or proceed based on predefined thresholds.
When to Use
- Low-risk gradual rollouts
- Real-world testing with live traffic
- Automatic rollback on errors
- User impact minimization
- A/B testing integration
- Metrics-driven deployments
- High-traffic services
Quick Start
Minimal working example:
# canary-deployment-istio.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-v1
namespace: production
spec:
replicas: 3
selector:
matchLabels:
app: myapp
version: v1
template:
metadata:
labels:
app: myapp
version: v1
spec:
containers:
- name: myapp
image: myrepo/myapp:1.0.0
ports:
- containerPort: 8080
---
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Istio-based Canary Deployment | Istio-based Canary Deployment |
| Kubernetes Native Canary Script | Kubernetes Native Canary Script |
| Metrics-Based Canary Analysis | Metrics-Based Canary Analysis |
| Automated Canary Promotion | Automated Canary Promotion |
Best Practices
✅ DO
- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying
❌ DON'T
- Skip testing or validation
- Ignore error handling
- Hard-code configuration values
Comments
Markdown supported