gitops
GitOps
Overview
Use GitOps-first changes for infra and deployment workflows, then validate locally and let Argo CD reconcile. Only apply directly to the cluster when explicitly instructed or in an emergency.
Workflow
-
Locate the source of truth
- Argo CD apps and overlays:
argocd/ - Kubernetes manifests:
kubernetes/ - IaC:
tofu/,ansible/ - Service-specific instructions: nearest
README.md
- Argo CD apps and overlays:
-
Edit manifests in Git
- Prefer updating Argo CD apps/overlays instead of raw kubectl applies.
- Keep environment-specific changes in overlays.
-
Validate locally
- Argo lint:
scripts/argo-lint.sh - Kubeconform:
scripts/kubeconform.sh argocd - Terraform/tofu:
bun run tf:plan(apply only when asked) - Ansible:
bun run ansible
- Argo lint:
-
Rollout discipline
- Note rollout/impact for changes in
argocd/,kubernetes/,tofu/,ansible/. - For Helm charts with kustomize, use:
mise exec helm@3 -- kustomize build --enable-helm <path>.
- Cluster access (exception-only)
- Use direct
kubectl applyonly when explicitly asked or in emergencies. - Always set namespace:
kubectl ... -n <ns>.
- Deploy completion guardrail
- Only call a deploy "completed" after the Argo CD application is synced and healthy.
Pointers
- Use
references/gitops-checklist.mdfor quick commands and repo-specific notes.
More from proompteng/lab
repo-map
Navigate this repo quickly to find the correct app, package, or service, and identify the right files for changes.
79memories
Save and retrieve memories or embeddings via the repo helpers or API. Use when working with embedding config or memory storage.
78temporal
Operate Temporal workflows in this repo: start/list/inspect workflows, fetch history, debug nondeterminism, reset/cancel/terminate, and check task queues via Temporal CLI.
77github-issue
Create GitHub issues in this repo using the Codex issue template and the gh CLI. Use when the user asks to file/open/create a GitHub issue, track work, or request a Codex implementation run via .github/ISSUE_TEMPLATE/codex-task.md.
76quality-checks
Run formatting, lint, typecheck, and tests for this repo; use when validating changes or investigating CI failures.
74kubernetes
Use for kubectl, CNPG, and kustomize/helm operations in this repo, including rollouts and cluster debugging.
72