Orchestrating Deployment Pipelines
Overview
Orchestrate multi-stage deployment pipelines that coordinate builds, tests, approvals, and releases across environments (dev, staging, production). Implement deployment strategies including blue-green, canary, rolling updates, and feature flags using Kubernetes, cloud-native services, and CI/CD platforms.
Prerequisites
- CI/CD platform configured (GitHub Actions, GitLab CI, Jenkins, ArgoCD)
- Kubernetes cluster with
kubectl access or cloud deployment target (ECS, Cloud Run, App Engine)
- Container registry with built and tagged images ready for deployment
- Environment-specific configuration (secrets, environment variables) stored securely
- Monitoring and alerting configured to detect deployment failures
Instructions
- Define the deployment topology: target environments, promotion flow (dev -> staging -> production), and approval gates
- Select deployment strategy per environment: rolling update for staging, canary or blue-green for production
- Generate deployment manifests (Kubernetes Deployments, Services, Ingress) or cloud service configurations
- Implement pre-deployment checks: database migration status, dependency health, configuration validation
- Configure canary analysis: route 5-10% of traffic to new version, monitor error rate and latency for 15 minutes before full rollout
- Add post-deployment verification: smoke tests, health check endpoints, synthetic monitoring
- Implement automated rollback triggers: revert if error rate exceeds 1% or P99 latency doubles during canary phase
- Set up deployment notifications: Slack messages with deployment status, version, environment, and commit link
- Document the deployment runbook with manual intervention procedures for edge cases
Output
- Deployment pipeline configurations (GitHub Actions workflows, ArgoCD Applications)
- Kubernetes manifests with deployment strategy annotations
- Canary analysis configuration (Flagger, Argo Rollouts)
- Pre/post-deployment hook scripts
- Deployment runbook with rollback procedures
Error Handling
| Error |
Cause |
Solution |
ImagePullBackOff |
Image tag not found in registry or auth failure |
Verify image exists with docker manifest inspect; check imagePullSecrets |
CrashLoopBackOff |
Application failing to start in new version |
Check pod logs with kubectl logs; verify environment variables and config maps |
Canary analysis failed |
Error rate or latency exceeded threshold during canary |
Automatic rollback triggered; investigate logs from canary pods before retrying |
Deployment stuck in Progressing |
Insufficient resources or pod scheduling failure |
Check kubectl describe deployment for events; verify resource requests and node capacity |
Database migration failed |
Schema conflict or lock timeout |
Run migrations independently before deployment; add retry logic and connection timeout |
Examples
- "Create a deployment pipeline that builds on PR merge, deploys to staging automatically, runs integration tests, then requires manual approval for production with canary rollout."
- "Set up Argo Rollouts for a Kubernetes deployment with 10% canary traffic, Prometheus-based analysis, and automatic rollback on error rate > 0.5%."
- "Generate a blue-green deployment for an ECS service with ALB target group switching and automatic rollback on health check failure."
Resources
1---
2name: orchestrating-deployment-pipelines
3description: |
4 Deploy use when you need to work with deployment and CI/CD.
5 This skill provides deployment automation and orchestration with comprehensive guidance and automation.
6 Trigger with phrases like "deploy application", "create pipeline",
7 or "automate deployment".
8
9allowed-tools: Read, Write, Edit, Grep, Glob, Bash(git:*), Bash(docker:*), Bash(kubectl:*)
10version: 1.0.0
11author: Jeremy Longshore <jeremy@intentsolutions.io>
12license: MIT
13compatible-with: claude-code, codex, openclaw
14metadata:
15 source: https://skillmd.com/skills/micsapp/orchestrating-deployment-pipelines
16---
17
18# Orchestrating Deployment Pipelines
19
20## Overview
21
22Orchestrate multi-stage deployment pipelines that coordinate builds, tests, approvals, and releases across environments (dev, staging, production). Implement deployment strategies including blue-green, canary, rolling updates, and feature flags using Kubernetes, cloud-native services, and CI/CD platforms.
23
24## Prerequisites
25
26- CI/CD platform configured (GitHub Actions, GitLab CI, Jenkins, ArgoCD)
27- Kubernetes cluster with `kubectl` access or cloud deployment target (ECS, Cloud Run, App Engine)
28- Container registry with built and tagged images ready for deployment
29- Environment-specific configuration (secrets, environment variables) stored securely
30- Monitoring and alerting configured to detect deployment failures
31
32## Instructions
33
341. Define the deployment topology: target environments, promotion flow (dev -> staging -> production), and approval gates
352. Select deployment strategy per environment: rolling update for staging, canary or blue-green for production
363. Generate deployment manifests (Kubernetes Deployments, Services, Ingress) or cloud service configurations
374. Implement pre-deployment checks: database migration status, dependency health, configuration validation
385. Configure canary analysis: route 5-10% of traffic to new version, monitor error rate and latency for 15 minutes before full rollout
396. Add post-deployment verification: smoke tests, health check endpoints, synthetic monitoring
407. Implement automated rollback triggers: revert if error rate exceeds 1% or P99 latency doubles during canary phase
418. Set up deployment notifications: Slack messages with deployment status, version, environment, and commit link
429. Document the deployment runbook with manual intervention procedures for edge cases
43
44## Output
45
46- Deployment pipeline configurations (GitHub Actions workflows, ArgoCD Applications)
47- Kubernetes manifests with deployment strategy annotations
48- Canary analysis configuration (Flagger, Argo Rollouts)
49- Pre/post-deployment hook scripts
50- Deployment runbook with rollback procedures
51
52## Error Handling
53
54| Error | Cause | Solution |
55|-------|-------|---------|
56| `ImagePullBackOff` | Image tag not found in registry or auth failure | Verify image exists with `docker manifest inspect`; check `imagePullSecrets` |
57| `CrashLoopBackOff` | Application failing to start in new version | Check pod logs with `kubectl logs`; verify environment variables and config maps |
58| `Canary analysis failed` | Error rate or latency exceeded threshold during canary | Automatic rollback triggered; investigate logs from canary pods before retrying |
59| `Deployment stuck in Progressing` | Insufficient resources or pod scheduling failure | Check `kubectl describe deployment` for events; verify resource requests and node capacity |
60| `Database migration failed` | Schema conflict or lock timeout | Run migrations independently before deployment; add retry logic and connection timeout |
61
62## Examples
63
64- "Create a deployment pipeline that builds on PR merge, deploys to staging automatically, runs integration tests, then requires manual approval for production with canary rollout."
65- "Set up Argo Rollouts for a Kubernetes deployment with 10% canary traffic, Prometheus-based analysis, and automatic rollback on error rate > 0.5%."
66- "Generate a blue-green deployment for an ECS service with ALB target group switching and automatic rollback on health check failure."
67
68## Resources
69
70- Kubernetes deployment strategies: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
71- Argo Rollouts: https://argoproj.github.io/argo-rollouts/
72- Flagger (progressive delivery): https://flagger.app/
73- AWS ECS blue-green: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html