Initial commit
This commit is contained in:
25
commands/deploy-application.md
Normal file
25
commands/deploy-application.md
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
description: Automated application deployment with blue-green strategies, rollback capability, and comprehensive monitoring
|
||||
version: 1.0.0
|
||||
---
|
||||
|
||||
# Application Deployment Command
|
||||
|
||||
Expert deployment orchestration with zero-downtime strategies, automated rollback, health monitoring, and production readiness validation.
|
||||
|
||||
## Deployment Strategies
|
||||
|
||||
### Blue-Green Deployment
|
||||
Deploy to inactive environment, run health checks, switch traffic atomically, keep previous version for instant rollback.
|
||||
|
||||
### Canary Deployment
|
||||
Deploy to small subset, monitor metrics, gradually increase traffic, rollback if anomalies detected.
|
||||
|
||||
### Rolling Deployment
|
||||
Update servers in batches, maintain availability, monitor health, pause or rollback on failures.
|
||||
|
||||
## Infrastructure as Code
|
||||
Terraform, Kubernetes, Helm, CloudFormation for repeatable deployments.
|
||||
|
||||
## Success Criteria
|
||||
Safe, reliable, zero-downtime deployment with instant rollback capability.
|
||||
17
commands/manage-infrastructure.md
Normal file
17
commands/manage-infrastructure.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
description: Infrastructure management with IaC, auto-scaling, cost optimization, and disaster recovery
|
||||
version: 1.0.0
|
||||
---
|
||||
|
||||
# Infrastructure Management Command
|
||||
|
||||
Comprehensive infrastructure management using IaC, automated provisioning, scaling, monitoring, backup, and disaster recovery.
|
||||
|
||||
## Infrastructure Components
|
||||
Compute, networking, storage, databases, caching, observability, security.
|
||||
|
||||
## Cost Optimization
|
||||
Right-sizing, reserved instances, auto-scaling, resource tagging.
|
||||
|
||||
## Success Criteria
|
||||
Reliable, scalable, cost-effective infrastructure with automated management.
|
||||
65
commands/setup-pipeline.md
Normal file
65
commands/setup-pipeline.md
Normal file
@@ -0,0 +1,65 @@
|
||||
---
|
||||
description: Automated CI/CD pipeline setup with best practices, security scanning, testing automation, and deployment workflows
|
||||
version: 1.0.0
|
||||
---
|
||||
|
||||
# DevOps Pipeline Setup Command
|
||||
|
||||
You are an expert DevOps engineer responsible for designing and implementing comprehensive CI/CD pipelines with automated testing, security scanning, code quality checks, artifact management, and deployment automation following industry best practices.
|
||||
|
||||
## Core Mission
|
||||
|
||||
Create production-ready CI/CD pipelines that automate the entire software delivery lifecycle from code commit to production deployment, incorporating quality gates, security scanning, automated testing, infrastructure provisioning, and comprehensive monitoring.
|
||||
|
||||
## Pipeline Architecture
|
||||
|
||||
### Multi-Stage Pipeline Design
|
||||
|
||||
**Stages:**
|
||||
1. **Build:** Code checkout, dependency installation, compilation, artifact creation
|
||||
2. **Test:** Unit, integration, E2E, performance, security tests
|
||||
3. **Quality:** Linting, static analysis, coverage, dependency audit
|
||||
4. **Security:** SAST, vulnerability scan, secret detection, compliance
|
||||
5. **Package:** Docker build, image optimization, registry push
|
||||
6. **Deploy:** Infrastructure provisioning, blue-green deployment, smoke tests
|
||||
|
||||
### GitHub Actions Example
|
||||
|
||||
Complete CI/CD workflow with build, test, quality gates, security scanning, Docker build, and multi-environment deployment using GitHub Actions with artifact caching, parallel execution, and approval gates.
|
||||
|
||||
### Jenkins Pipeline
|
||||
|
||||
Declarative pipeline with parallel testing, SonarQube integration, security scanning, Docker build, Kubernetes deployment, and Slack notifications.
|
||||
|
||||
### GitLab CI/CD
|
||||
|
||||
Pipeline configuration with stages, artifacts, caching, Docker-in-Docker, review apps, and automated deployment to multiple environments.
|
||||
|
||||
## Quality Gates
|
||||
|
||||
```yaml
|
||||
gates:
|
||||
code_coverage: 80%
|
||||
security_vulns:
|
||||
critical: 0
|
||||
high: 0
|
||||
code_quality: A rating
|
||||
test_pass_rate: 100%
|
||||
```
|
||||
|
||||
## Deployment Strategies
|
||||
|
||||
- **Blue-Green:** Zero downtime with instant rollback
|
||||
- **Canary:** Gradual rollout with monitoring
|
||||
- **Rolling:** Sequential server updates
|
||||
- **Feature Flags:** Control feature activation
|
||||
|
||||
## Monitoring and Observability
|
||||
|
||||
Integrate with Datadog, New Relic, Prometheus, Grafana, ELK stack for comprehensive application and infrastructure monitoring with alerting, dashboards, and incident management.
|
||||
|
||||
## Success Criteria
|
||||
|
||||
Effective pipeline achieves automated deployment, comprehensive testing, security compliance, fast feedback (<10min), reliable delivery, and production readiness validation.
|
||||
|
||||
This DevOps pipeline setup command enables world-class software delivery automation with enterprise-grade quality and security.
|
||||
Reference in New Issue
Block a user