devops-%26-deployment by ariegoldkin/ai-agent-hub
npx skills add https://github.com/ariegoldkin/ai-agent-hub --skill 'DevOps & Deployment'用于 CI/CD 流水线、容器化、部署策略和基础设施自动化的综合框架。
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ 代码提交 │──▶│ 构建与 │──▶│ 测试与 │──▶│ 部署与 │
│ │ │ 代码检查 │ │ 安全扫描 │ │ 发布 │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
│ │ │ │
▼ ▼ ▼ ▼
触发器 制品 报告 监控
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
完整的 GitHub Actions 工作流请参见 templates/github-actions-pipeline.yml
多阶段构建以最小化镜像大小:
安全加固:
参见
templates/Dockerfile和templates/docker-compose.yml
核心清单文件:
安全上下文:
runAsNonRoot: trueallowPrivilegeEscalation: falsereadOnlyRootFilesystem: true资源管理:
requests 进行调度,limits 进行限制参见
templates/k8s-manifests.yaml和templates/helm-values.yaml
| 策略 | 使用场景 | 风险 |
|---|---|---|
| 滚动更新 | 默认,逐步替换 | 低 - 自动回滚 |
| 蓝绿部署 | 即时切换,易于回滚 | 中 - 双倍资源 |
| 金丝雀发布 | 渐进式流量切换 | 低 - 逐步暴露 |
滚动更新 (Kubernetes 默认):
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 0 # 零停机时间
蓝绿部署:部署到备用环境,切换服务选择器 金丝雀发布:使用 Istio VirtualService 进行流量切分 (10% → 50% → 100%)
Terraform 模式:
AWS VPC + EKS + RDS 示例请参见
templates/terraform-aws.tf
ArgoCD 监控 Git 仓库并同步集群状态:
参见
templates/argocd-application.yaml
使用 External Secrets Operator 从云提供商同步:
参见
templates/external-secrets.yaml
charts/app/
├── Chart.yaml
├── values.yaml
├── templates/
│ ├── deployment.yaml
│ ├── service.yaml
│ ├── ingress.yaml
│ ├── configmap.yaml
│ ├── secret.yaml
│ ├── hpa.yaml
│ └── _helpers.tpl
└── values/
├── staging.yaml
└── production.yaml
使用 Opus 4.5 扩展思考来处理:
| 模板 | 用途 |
|---|---|
github-actions-pipeline.yml | 包含 6 个阶段的完整 CI/CD 工作流 |
Dockerfile | 多阶段 Node.js 构建 |
docker-compose.yml | 开发环境 |
k8s-manifests.yaml | Deployment, Service, Ingress |
helm-values.yaml | Helm chart 值文件 |
terraform-aws.tf | VPC, EKS, RDS 基础设施 |
argocd-application.yaml | GitOps 应用 |
external-secrets.yaml | Secrets Manager 集成 |
每周安装数
0
代码仓库
GitHub 星标数
8
首次出现时间
1970年1月1日
Comprehensive frameworks for CI/CD pipelines, containerization, deployment strategies, and infrastructure automation.
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Code │──▶│ Build │──▶│ Test │──▶│ Deploy │
│ Commit │ │ & Lint │ │ & Scan │ │ & Release │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
│ │ │ │
▼ ▼ ▼ ▼
Triggers Artifacts Reports Monitoring
See
templates/github-actions-pipeline.ymlfor complete GitHub Actions workflow
Multi-stage builds minimize image size:
Security hardening :
See
templates/Dockerfileandtemplates/docker-compose.yml
Essential manifests :
Security context :
runAsNonRoot: trueallowPrivilegeEscalation: falsereadOnlyRootFilesystem: trueResource management :
requests for scheduling, limits for throttlingSee
templates/k8s-manifests.yamlandtemplates/helm-values.yaml
| Strategy | Use Case | Risk |
|---|---|---|
| Rolling | Default, gradual replacement | Low - automatic rollback |
| Blue-Green | Instant switch, easy rollback | Medium - double resources |
| Canary | Progressive traffic shift | Low - gradual exposure |
Rolling Update (Kubernetes default):
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 0 # Zero downtime
Blue-Green : Deploy to standby environment, switch service selector Canary : Use Istio VirtualService for traffic splitting (10% → 50% → 100%)
Terraform patterns :
See
templates/terraform-aws.tffor AWS VPC + EKS + RDS example
ArgoCD watches Git repository and syncs cluster state:
See
templates/argocd-application.yaml
Use External Secrets Operator to sync from cloud providers:
See
templates/external-secrets.yaml
charts/app/
├── Chart.yaml
├── values.yaml
├── templates/
│ ├── deployment.yaml
│ ├── service.yaml
│ ├── ingress.yaml
│ ├── configmap.yaml
│ ├── secret.yaml
│ ├── hpa.yaml
│ └── _helpers.tpl
└── values/
├── staging.yaml
└── production.yaml
Use Opus 4.5 extended thinking for:
| Template | Purpose |
|---|---|
github-actions-pipeline.yml | Full CI/CD workflow with 6 stages |
Dockerfile | Multi-stage Node.js build |
docker-compose.yml | Development environment |
k8s-manifests.yaml | Deployment, Service, Ingress |
helm-values.yaml | Helm chart values |
terraform-aws.tf |
Weekly Installs
0
Repository
GitHub Stars
8
First Seen
Jan 1, 1970
| VPC, EKS, RDS infrastructure |
argocd-application.yaml | GitOps application |
external-secrets.yaml | Secrets Manager integration |