Canary Deployment

Canary Deployment

Guides an AI agent to set up canary deployments that roll new versions out to a small share of users, with Istio or Kubernetes and automatic rollback based on metrics.

Skill files7 files

references/

scripts/

templates/

SKILL.md90 lines
1
---
2
name: canary-deployment
3
description: >
4
Implement canary deployment strategies to gradually roll out new versions to
5
subset of users with automatic rollback based on metrics.
6
---
7
8
# Canary Deployment
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Deploy new versions gradually to a small percentage of users, monitor metrics for issues, and automatically rollback or proceed based on predefined thresholds.
21
22
## When to Use
23
24
- Low-risk gradual rollouts
25
- Real-world testing with live traffic
26
- Automatic rollback on errors
27
- User impact minimization
28
- A/B testing integration
29
- Metrics-driven deployments
30
- High-traffic services
31
32
## Quick Start
33
34
Minimal working example:
35
36
```yaml
37
# canary-deployment-istio.yaml
38
apiVersion: apps/v1
39
kind: Deployment
40
metadata:
41
name: myapp-v1
42
namespace: production
43
spec:
44
replicas: 3
45
selector:
46
matchLabels:
47
app: myapp
48
version: v1
49
template:
50
metadata:
51
labels:
52
app: myapp
53
version: v1
54
spec:
55
containers:
56
- name: myapp
57
image: myrepo/myapp:1.0.0
58
ports:
59
- containerPort: 8080
60
61
---
62
// ... (see reference guides for full implementation)
63
```
64
65
## Reference Guides
66
67
Detailed implementations in the `references/` directory:
68
69
| Guide | Contents |
70
|---|---|
71
| [Istio-based Canary Deployment](references/istio-based-canary-deployment.md) | Istio-based Canary Deployment |
72
| [Kubernetes Native Canary Script](references/kubernetes-native-canary-script.md) | Kubernetes Native Canary Script |
73
| [Metrics-Based Canary Analysis](references/metrics-based-canary-analysis.md) | Metrics-Based Canary Analysis |
74
| [Automated Canary Promotion](references/automated-canary-promotion.md) | Automated Canary Promotion |
75
76
## Best Practices
77
78
### ✅ DO
79
80
- Follow established patterns and conventions
81
- Write clean, maintainable code
82
- Add appropriate documentation
83
- Test thoroughly before deploying
84
85
### ❌ DON'T
86
87
- Skip testing or validation
88
- Ignore error handling
89
- Hard-code configuration values
90

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…