Files
pos-system/docs/en/skills/cicd-advanced-patterns.md
Ho Ngoc Hai 478254400a Refactor service documentation and enhance bilingual support
- Updated service template structure in `ARCHITECTURE.md` and `README.md` for clarity and usability.
- Enhanced bilingual documentation across skills, increasing the number of available skills from 15 to 25.
- Added new sections on event-driven architecture, inter-service communication, and performance optimization.
- Improved formatting and removed outdated references to streamline the documentation experience.
2026-01-01 10:06:27 +07:00

1.3 KiB

name, description
name description
cicd-advanced-patterns Advanced CI/CD patterns for GoodGo microservices including blue-green deployments, canary releases, automated rollback, deployment verification, and progressive delivery.

CI/CD Advanced Patterns

When to Use This Skill

Use this skill when:

  • Implementing blue-green deployments
  • Setting up canary releases
  • Implementing automated rollback mechanisms
  • Creating deployment verification pipelines
  • Implementing progressive delivery

Key Patterns

Blue-Green Deployment

# Switch service selector between blue/green
apiVersion: v1
kind: Service
spec:
  selector:
    version: blue  # Switch to green after verification

Canary Deployment

# Split traffic between stable and canary
http:
  - route:
    - destination:
        subset: stable
      weight: 90
    - destination:
        subset: canary
      weight: 10

Automated Rollback

# Rollback to previous revision
kubectl rollout undo deployment/service --to-revision=1

Best Practices

  1. Use blue-green for zero-downtime deployments
  2. Use canary for gradual rollouts with monitoring
  3. Always have automated rollback plan
  4. Run smoke tests immediately after deployment

Resources