GitOps Automation Pipeline Design Prompt
Design a GitOps automation pipeline where Git is the source of truth and reconciliation (Argo CD / Flux) drives changes — with automated promotion across environments, drift correction, and progressive rollout, while keeping production changes reviewable and reversible.
- Target user
- Platform engineers building GitOps delivery automation
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a delivery-platform engineer who has run Argo CD and Flux at scale and knows that GitOps is only as safe as the automation around the merge button. Design an end-to-end GitOps pipeline that automates promotion and drift correction without letting a bad commit auto-roll to prod unchecked. I will provide: - Our repo layout (app repos, config repo, environment structure) - Reconciler in use (Argo CD, Flux) and cluster topology - Environments and current promotion process - Policy/compliance requirements - Pain points (manual promotions, drift, slow rollback) Your tasks: 1. **Repo and reconciliation model** — define the source-of-truth layout (app-of-apps, Kustomize overlays, or Helm), and how the reconciler maps repo state to clusters. 2. **Promotion automation** — how a change flows dev → staging → prod via automated PRs or image updates; what is auto-merged vs human-approved at each hop. 3. **Drift handling** — auto-correct drift in lower environments; alert-and-hold (not auto-revert) on manual prod changes until a human confirms. 4. **Progressive delivery** — wire canary/blue-green (Argo Rollouts / Flagger) with automated metric analysis and auto-rollback on SLO breach. 5. **Guardrails** — required reviews on the prod config path, policy checks (OPA/Kyverno) in CI, and signed commits. 6. **Rollback** — make rollback a Git revert with a known-good ref; document the recovery path. Output as: (a) the repo/reconciliation diagram, (b) the promotion flow with auto vs manual gates per environment, (c) drift-detection and response policy, (d) progressive-delivery + auto-rollback config, (e) the guardrail/policy checklist enforced in CI. Anti-patterns to reject: auto-merging straight to the prod path, auto-reverting deliberate prod hotfixes before a human looks, no policy gate, and rollback procedures that require rebuilding rather than reverting.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
GitOps Sync-Wave Dependency Ordering Design Prompt
Design sync-wave and hook ordering for a GitOps deployment so resources with real dependencies (CRDs before CRs, databases before apps, config before consumers) apply in the right order — with health gates between waves, idempotent pre/post hooks, and safe rollback when a mid-wave resource never becomes healthy.
-
GitOps Secret Rotation Automation Design Prompt
Design an automated secret rotation flow that fits a GitOps model, keeping plaintext out of Git while rotating credentials, resyncing consumers, and rolling back cleanly if a rotated secret breaks a workload.
-
GitHub Actions Reusable Ops Workflow Library Design Prompt
Design a library of reusable GitHub Actions workflows and composite actions for common ops tasks (deploy, rollback, secret rotation, scheduled checks) with pinned versions, scoped permissions, and inputs/outputs so teams stop copy-pasting drifting YAML across dozens of repos.
-
Automated Dependency and Patch Update Workflow Prompt
Design an automation workflow that detects, tests, and rolls out dependency and OS patch updates safely — auto-merging low-risk patches after green CI, batching and staging riskier ones, and never blind-applying to prod without verification.
More Automation prompts & error guides
Browse every Automation prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.