CI/CD pipelines, containerization, Kubernetes, and infrastructure as code patterns
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 |
VPC, EKS, RDS infrastructure |
argocd-application.yaml |
GitOps application |
external-secrets.yaml |
Secrets Manager integration |