Cloud Fortgeschritten
CI/CD für Kubernetes — Pipeline Design¶
CI/CDKubernetesGitHub ActionsArgoCD 5 min Lesezeit
Build, Test, Scan, Push, Deploy. GitHub Actions + ArgoCD.
Pipeline-Phasen¶
# CI: Lint → Test → Build image → Scan → Push → Update manifests
# CD: ArgoCD detect → Sync → Health check → Progressive rollout
GitHub Actions¶
name: CI
on: push
jobs:
build:
steps:
- run: npm ci && npm test
- uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/myorg/app:${{ github.sha }}
- run: trivy image --exit-code 1 ghcr.io/myorg/app:${{ github.sha }}
- run: |
cd k8s-manifests
kustomize edit set image app=ghcr.io/myorg/app:${{ github.sha }}
git commit -am "deploy ${{ github.sha }}" && git push
Progressive Delivery¶
- Argo Rollouts — Canary, Blue-Green, Analysis
- Flagger — Automatisiertes Canary mit Metriken-Analyse
- Automatischer Rollback bei Metrik-Verschlechterung
Zusammenfassung¶
CI baut und pusht das Image. CD (ArgoCD) synchronisiert Manifeste. Progressive Delivery für sichere Rollouts.
Brauchen Sie Hilfe bei der Implementierung?¶
Unser Team hat Erfahrung in der Konzeption und Umsetzung moderner Architekturen. Wir helfen Ihnen gerne.