惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
Google DeepMind News
Google DeepMind News
博客园 - 【当耐特】
量子位
博客园 - 司徒正美
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
腾讯CDC
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
I
InfoQ
D
Docker
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
宝玉的分享
宝玉的分享
G
Google Developers Blog
GbyAI
GbyAI
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
H
Help Net Security

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
GitOps vs DevOps: What's the Difference and How Do They R...
James Lee · 2026-05-19 · via DEV Community

DevOps has matured significantly over the past decade. As more organizations adopt a DevOps mindset, the ecosystem around it keeps expanding — DevSecOps, AIOps, SecOps, and more. GitOps is one of the newer concepts emerging from this space.

At its core, GitOps enables developers to use Git to create CI/CD pipelines that automate development and operations across multi-cloud and multi-cluster container orchestration environments.


1. How GitOps Fits Into DevOps

Most engineers are already familiar with DevOps, so let's skip the basics and focus on where GitOps fits in.

GitOps is a technique integrated into the DevOps lifecycle. Originally, it was a method for storing, managing, and retrieving deployment descriptors for container orchestrators like Kubernetes and Docker Swarm. Today, it has expanded to cover:

  • IaC documents — Terraform, CloudFormation
  • Software configuration — Ansible, Puppet
  • Application definitions — Helm, Kustomize
  • Any declarative config that can live in a Git repo

Think of GitOps as the deployment and operations layer of the DevOps lifecycle — specifically optimized for cloud-native, declarative environments.


2. The Two GitOps Deployment Models

GitOps has two implementation strategies: Push-based and Pull-based. Understanding the difference is critical.

2.1 Push-Based Deployment

Code Change → CI Pipeline → kubectl apply → Cluster

Enter fullscreen mode Exit fullscreen mode

In Push mode, an external system (your CI pipeline) has credentials to access the cluster and pushes changes directly after a code change triggers it.

Characteristics:

  • Acts as a "god view" — the CI system has broad cluster access
  • Triggered by code changes only
  • ⚠️ If someone manually modifies cluster config, drift goes undetected
  • ⚠️ Cluster credentials must live outside the cluster (in CI) — security risk

2.2 Pull-Based Deployment

Code Change → Git Repo ← Agent polls → Cluster self-updates

Enter fullscreen mode Exit fullscreen mode

In Pull mode, an agent running inside the cluster periodically polls the Git repo. When it detects a difference between the desired state (Git) and the actual state (cluster), it automatically reconciles.

Characteristics:

  • Leverages in-cluster permissions — no external credentials needed
  • Continuously monitors for drift, not just on code change triggers
  • ✅ Manual cluster changes are automatically detected and reverted
  • ✅ Git remains the only way to change cluster state

Push vs Pull — Side by Side

Dimension Push Mode Pull Mode
Trigger Code change event Continuous polling
Credentials Stored in CI (external) In-cluster only
Drift detection ❌ None ✅ Automatic
Security posture Lower Higher
Typical tools Jenkins, GitHub Actions Argo CD, Flux CD

Bottom line: Push is simpler to set up. Pull is safer and more resilient. For production Kubernetes environments, Pull-based GitOps is the recommended approach.


3. GitOps Is One Way to Implement DevOps

It's important to be clear: GitOps is not a replacement for DevOps — it's one implementation path within it.

GitOps uses Git as the single source of truth and combines it with tools like Flux CD or Argo CD to achieve continuous deployment. But the full DevOps lifecycle covers much more:

  • Continuous Build
  • Code Scanning & Quality Gates
  • Unit & Integration Testing
  • Continuous Deployment ← this is where GitOps lives
  • Logging, Monitoring & Alerting

GitOps handles the CD layer exceptionally well. For everything else, you still need a broader DevOps toolchain.


4. The Full GitOps Toolchain

GitOps emerged later than DevOps, which means its toolchain is newer and more cloud-native by design. Here's what a complete GitOps stack looks like in practice:

Layer Tools
Container & Image Docker
Continuous Integration GitHub Actions, Jenkins, Tekton
Image Registry Harbor
Application Definition Helm, Kustomize
Continuous Deployment Argo CD, Flux CD
Secret Management Vault
Container Orchestration Kubernetes
Ingress / Gateway Ingress-Nginx
Logging Grafana Loki, Fluentd
Monitoring Grafana
Alerting Prometheus
App Development Nocalhost

Each layer is replaceable — the key is that Git sits at the center, and every change flows through it.


5. Summary

DevOps GitOps
Nature Culture & philosophy Technical implementation
Scope Full software lifecycle Primarily CD + IaC
Environment VMs, bare metal, containers Cloud-native / K8s-first
Source of truth Varies Git (always)
Maturity ~15+ years ~7 years, still evolving

GitOps doesn't replace DevOps — it sharpens it for cloud-native environments. If your team is running Kubernetes in production and still relying on Push-based deployments with credentials scattered across CI systems, GitOps Pull mode is worth a serious look.


Next in this series: GitOps Continuous Delivery — Immutable Infrastructure & Declarative Orchestration (Part 3)


Follow the series for upcoming hands-on articles on Tekton pipelines and Argo CD application management.