DevOps Release Pipelines and GitOps
Further reading for the two-day course “DevOps Release Pipelines and GitOps”: Azure Pipelines, release management, Argo CD, Kustomize and Argo Rollouts.
Day 1: Microsoft Learn
The Day 1 theory uses slides from Microsoft’s course AZ-400: Designing and Implementing Microsoft DevOps solutions. These are the matching learning paths and modules on Microsoft Learn. They are free.
Part 1: Azure Pipelines, CI and containers
Learning Path: AZ-400: Implement CI with Azure Pipelines and GitHub Actions
- Explore Azure Pipelines
- Manage Azure Pipeline agents and pools
- Describe pipelines and concurrency
- Design and implement a pipeline strategy
- Integrate with Azure Pipelines
- Design a container build strategy
Part 2: Release strategy and multi-stage pipelines
Learning Path: AZ-400: Design and implement a release strategy
- Create a release pipeline
- Explore release recommendations
- Provision and test environments
- Manage and modularize tasks and templates
- Automate inspection of health
Part 3: Deployment patterns, feature flags and configuration
Learning Path: AZ-400: Implement a secure continuous deployment using Azure Pipelines
- Introduction to deployment patterns
- Implement blue-green deployment and feature toggles
- Implement canary releases and dark launching
- Implement A/B testing and progressive exposure deployment
- Manage application configuration data
Branching and pull requests
Learning Path: AZ-400: Development for enterprise DevOps
Day 1: Azure Pipelines basics
Websites
- What is Azure Pipelines?
- Key concepts for Azure Pipelines
- YAML schema reference
- Stages
- Azure Pipelines agents
- Self-hosted Linux agents
- Parallel jobs
- Templates
- Variables
- Variable groups
- Service connections
- Run and build numbers
Day 1: Continuous integration
Websites
- Continuous Integration (Martin Fowler)
- Branch policies and settings
- About pull requests
- Review test results
Day 1: Images and tags
Websites
- Dockerfile best practices
- Multi-stage builds
- Docker@2 task
- Recommendations for tagging and versioning container images
- Semantic Versioning
- OCI image specification
- Harbor, a self-hosted registry
- Trivy, image and configuration scanner
Day 1: Release strategy
Websites
- Trunk Based Development
- Git branching guidance
- A successful Git branching model (Gitflow)
- GitHub flow
- DORA’s software delivery performance metrics
- DORA capabilities
- Continuous Delivery
Day 1: Stages, environments and approvals
Websites
- Tutorial: Create a multistage pipeline with Azure DevOps
- Environments
- Approvals and checks
- Deployment jobs
- Kubernetes resource in an environment
- Resources in YAML pipelines
- Securing Azure Pipelines
Videos
- Pipelines as Code (and some tips!) with Azure Pipelines YAML Multi-Stage Pipelines (Chris Reddington)
- 11e. How to create Environment in Azure DevOps and use it for approval gates (SkillBuilderZone)
- How to Create a Multi-Stage YAML Pipeline in Azure DevOps - Azure DevOps (BestITCourses)
Day 1: Deployment patterns and feature flags
Websites
- Blue-green deployment (Martin Fowler)
- Canary release (Martin Fowler)
- Dark launching (Martin Fowler)
- Feature toggles (Pete Hodgson)
- Parallel change: expand and contract
- OpenFeature
- Unleash, a self-hosted feature flag service
- Kubernetes Deployments
- Kubernetes ConfigMaps
- The Twelve-Factor App: Config
Day 1: When a release fails
Websites
- Postmortem culture: learning from failure (Google SRE book)
- Canarying releases (Google SRE workbook)
- Release engineering (Google SRE book)
Day 2: GitOps and Argo CD
Websites
- OpenGitOps principles
- Guide to GitOps
- Argo CD documentation
- Core concepts
- Architecture
- Declarative setup
- Projects
- Private repositories
- Cluster bootstrapping: app of apps
- ApplicationSet
- Best practices
- Flux, the other CNCF GitOps tool
Videos
- ArgoCD Tutorial for Beginners - GitOps CD for Kubernetes (TechWorld with Nana)
- GitOps with ArgoCD on kind (Kubernetes in Docker) — Complete Hands-On Tutorial (vijay giduthuri)
- ArgoCD Tutorial: GitOps on Kubernetes in 11 Minutes (DevOps with Flavius)
Day 2: Sync status, health and sync options
Websites
- Automated sync policy
- Sync options
- Sync phases and waves
- Resource health
- Diffing customization
- Git webhook configuration
Day 2: Kustomize
Websites
- Kustomize
- The kustomization file reference
- Declarative management of Kubernetes objects using Kustomize
- Kustomize in Argo CD
- Helm documentation
- Helm in Argo CD
Videos
Day 2: Promotion, sync windows and notifications
Websites
- Stop using branches for deploying to different GitOps environments
- How to model your GitOps environments and promote releases between them
- Sync windows
- Notifications
- Argo CD Image Updater
- Kargo
Videos
- Kargo - Multi-Stage Deployment Pipelines using GitOps - Jesse Suen / Kent Rancourt (Platform Engineering)
- GitOps 101: Getting Started with Kargo (Akuity)
Day 2: Argo Rollouts
Websites
- Argo Rollouts documentation
- Blue-green strategy
- Canary strategy
- Analysis and progressive delivery
- Migrating a Deployment to a Rollout
- Kubectl plugin
Videos
- Argo Rollouts - Canary Deployments Made Easy In Kubernetes (DevOps & AI Toolkit)
- Canary Vs Blue Green Demo : Performing Safe Releases Using Argo Rollouts (Agile Guru)
Day 2: Argo Rollouts on OpenShift
Blue-green needs no traffic manager. Canary by traffic weight does. On OpenShift the options are the Routes plugin, the Gateway API plugin and Service Mesh.
Websites
- Traffic management in Argo Rollouts
- Traffic router plugins
- Routing traffic by using Argo Rollouts with OpenShift Routes (OpenShift GitOps 1.20)
- Routing traffic by using Argo Rollouts for OpenShift Service Mesh (OpenShift GitOps 1.20)
- Configuring traffic management and metric plugins (OpenShift GitOps 1.18)
- Argo Rollouts traffic manager for OpenShift Routes (Red Hat Developer)
- OpenShift Routes plugin for Argo Rollouts
- Gateway API plugin for Argo Rollouts
- Configuring Gateway API (OpenShift Container Platform 4.22)
- Routes, Ingress and Gateway API (Red Hat blog)
- Kubernetes Gateway API
Videos
Day 2: Secrets, access control and supply chain
Websites
- Secret management in Argo CD
- External Secrets Operator
- Sealed Secrets
- SOPS
- Kubernetes Secrets
- Argo CD RBAC
- Argo CD user management and SSO
- SLSA, supply-chain levels for software artifacts
- Sigstore: signing images
- Kyverno, policy as code for Kubernetes
Where to go next
Courses and certifications
- AZ-400: Designing and Implementing Microsoft DevOps Solutions
- DevOps and Workflow Management with Argo (LFS256)
- Certified Argo Project Associate (CAPA)
- Certified GitOps Associate (CGOA)
Books
- Humble J, Farley D: Continuous Delivery - Reliable Software Releases through Build, Test, and Deployment Automation, Addison-Wesley, 2010, ISBN 978-0321601919
- Forsgren N, Humble J, Kim G: Accelerate - The Science of Lean Software and DevOps, IT Revolution Press, 2018, ISBN 978-1942788331
- Kim G, Humble J, Debois P, Willis J, Forsgren N: The DevOps Handbook - How to Create World-Class Agility, Reliability, & Security in Technology Organizations (2nd Edition), IT Revolution Press, 2021, ISBN 978-1950508402
- Yuen B, Matyushentsev A, Ekenstam T, Suen J: GitOps and Kubernetes - Continuous Deployment with Argo CD, Jenkins X, and Flux, Manning, 2021, ISBN 978-1617297274