Cloud Pokročilý
CI/CD pro Kubernetes — Pipeline design¶
CI/CDKubernetesGitHub ActionsArgoCD 5 min čtení
Build, test, scan, push, deploy. GitHub Actions + ArgoCD.
Pipeline fáze¶
# 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 — automated canary s metrics analysis
- Automatický rollback při degradaci metrik
Shrnutí¶
CI builds + pushes image. CD (ArgoCD) syncs manifests. Progressive delivery pro safe rollouts.
Potřebujete pomoct s implementací?¶
Náš tým má zkušenosti s návrhem a implementací moderních architektur. Rádi vám pomůžeme.