Implement canary deployment strategies to gradually roll out new versions to subset of users with automatic rollback based on metrics.
3f5182cDeploy new versions gradually to a small percentage of users, monitor metrics for issues, and automatically rollback or proceed based on predefined thresholds.
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)
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 |
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/canary-deployment · pinned to the source commit
git clone https://github.com/aj-geddes/useful-ai-prompts.git
cd useful-ai-prompts
git checkout 3f5182cfd739fc113f4af5244a1cf342ad7f7911
mkdir -p ".claude/skills/canary-deployment"
cp -r "skills/canary-deployment" ".claude/skills/canary-deployment"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit 3f5182cfd739. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.