Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

🏠 Back to Blog

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 n at a time.
  • Recreate: The deployment is recreated, causing downtime.

Progressive Delivery Patterns

  • Argo Rollouts extends 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
    1. You update code in a repository and create a PR
    2. A CI pipeline kicks off to test the code
    3. Tests pass, you merge the PR
    4. 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
      • ArgoCD is one example of an in-cluster reconciler. It lives in your cluster and continuously reconciles state
    • External