GitOps Patterns (20%)
Notes on gitops patterns.
Topics
- Deployment and Release Patterns
- Progressive Delivery Patterns
- Pull vs. Event-driven
- Architecture Patterns (in-cluster and external reconciler, state store management, etc.)
Deployment and Release Patterns
The two out-of-the-box deployment patterns used in Kubernetes
- Rolling update: Pods are replaced
nat a time. - Recreate: The deployment is recreated, causing downtime.
Progressive Delivery Patterns
Argo Rolloutsextends the rollout process with advanced deployment strategies such as canary deployments and blue/green deployments
Push vs. Pull vs. Event-driven
- Push based models are the most common. A traditional CI/CD architecture is an example of this
- You update code in a repository and create a PR
- A CI pipeline kicks off to test the code
- Tests pass, you merge the PR
- A CD pipeline kicks off with the latest change to the default branch and deploys the change to your environment
- Pull based models watch for changes to a repository and “pull down” updates as changes are made
- Event-driven models typically use web hooks. Changes are made to a repository and the webhook is invoked to notify the GitOps system
Architecture Patterns (in-cluster and external reconciler, state store management, etc.)
- Reconciler Types
- In-cluster
ArgoCDis one example of an in-cluster reconciler. It lives in your cluster and continuously reconciles state
- External
- In-cluster