The Real Fullstack

The Configuration Drift

The incident was fixed at 22:10. At 09:00 it was back. Who undid the fix?

工程师8 分钟调试实验室代码挑战
kubernetesargo-cdgithelm

此挑战尚未翻译为简体中文,你正在阅读英文版本。

任务:Name the real cause of the reverted fix and make Git the only way production changes — without losing the ability to hotfix quickly.背景 · 学习目标 ▾

During an incident, an engineer patched the checkout deployment directly with kubectl. The next morning Argo CD synced production back to what Git says, and the payment timeouts returned. A diff shows 14 more manual changes nobody can explain.

任务: Name the real cause of the reverted fix and make Git the only way production changes — without losing the ability to hotfix quickly.

学习目标

  • Understand configuration drift between Git and running systems.
  • Use GitOps reconciliation as a feature, not an obstacle.
  • Make every production change reviewable, auditable and revertible.
模拟模拟数据
Git repositoryArgo CDproduction cluster
运行模拟
# apps/checkout/production/values.yaml — the only place production config changesenv:  PAYMENT_TIMEOUT: 5s        # hotfix committed via PR #812 (reviewed, auditable, revertible)# Argo CD ApplicationsyncPolicy:  automated: { prune: true, selfHeal: true }   # manual cluster edits are reverted, not kept# RBAC: humans get read-only in production; changes go through Git

简化说明

Three symptoms with deterministic fixes. Real setups add emergency procedures (break-glass access with audit). 教学模型——数字用于说明行为,并非基准测试。

概念

相关挑战

参考资料