Section 16: Artifacts, Versioning and Registries
- Semantic versioning, image tagging and the build once, deploy many principle
- GitLab Container Registry and Package Registry with cleanup policies
- Promote artifacts between environments without rebuilding
- Lab: set a versioning strategy and tag the images of both services
Section 17: Lab: Helm 4 for Standard Deployments
- A standard chart structure for many services, with values per environment
- Library charts and checking charts with helm lint and helm template in the pipeline
- Key changes in Helm 4, such as server-side apply for new installs
- Lab: build a standard Helm chart for LedgerLine
Section 18: Lab: Rolling Updates and Blue-Green
- Rolling updates: maxSurge, maxUnavailable and readiness probes
- Blue-green: switch traffic between two versions and roll back instantly
- Choosing a strategy to match the risk of each release
- Lab: deploy notification-service blue-green and switch back
Section 19: Lab: Canary Releases with the Gateway API
- Weighted traffic splitting with a Gateway API HTTPRoute
- Go or roll-back criteria such as error rate and latency
- Increasing traffic in steps from the pipeline
- Lab: deploy payment-api as a 10% canary and increase the share step by step
Section 20: Workshop Day 4: Deploying Safely from the Pipeline
- Connect pipelines to the cluster with the GitLab agent for Kubernetes and Jenkins credentials
- Protected environments, manual approval and deployment freezes
- Smoke tests after deployment and automatic rollback when they fail
- Workshop: ship a release that fails its smoke test and check that the rollback works correctly