@router.post("/remediate")
async def trigger_remediation(event: K8sAlertEvent):
prompt = f"Analyze incident: {event.message} in namespace {event.namespace}"
decision = await ollama_client.generate(model="deepseek-coder", prompt=prompt)
if decision.approved:
kustomize.patch_resource(event.target, decision.patch)
await argocd.sync_app(event.app_name)
return {"status": "remediated", "commit": decision.git_hash}Local K8s AI DevOps Agent
An autonomous AI DevOps agent running locally in Kubernetes. Features a FastAPI interface orchestrating Ollama LLMs with Kustomize and ArgoCD GitOps pipelines for automated cluster healing and deployments.
- In-cluster LLM inference with zero data leakage using Ollama
- Automated GitOps deployments with ArgoCD Image Updater
- Self-contained container orchestration with RBAC security policies