{"repo":"lenaxia/k8s-mechanic","free":true,"listed":false,"github":"https://github.com/lenaxia/k8s-mechanic","clone":"git clone https://github.com/lenaxia/k8s-mechanic.git","description":"A K8s controller that watches your cluster for failures and opens pull requests on your GitOps repository with fixes. Security is a first class citizen, and it runs in-cluster with read-only RBAC, redacts secrets before they reach LLM, and requires human-in-the-loop. Formerly known as k8s-mendabot","language":"Go","stars":42,"topics":["agent","automation","devops","gitops","go","helm","homelab","k8s-at-home","kubernetes","kubernetes-controller"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"k8s-mechanic Name change: This project was previously known as k8s-mendabot . It has been renamed to k8s-mechanic . The CRD API group has changed from remediation.mendabot.io to remediation.mechanic.io . Existing installations will require migration. k8s-mechanic is a Kubernetes controller that watches your cluster for failures, investigates them automatically, and opens pull requests on your GitOps repository with proposed fixes — all without leaving your cluster. When a Pod is crash-looping, a Deployment is degraded, or a Node goes NotReady, mechanic spawns an in-cluster OpenCode agent that inspects the live cluster, locates the relevant manifests in your GitOps repo, determines the root cause, and opens a PR. You review and merge. No external operators, no external databases, no persistent services outside your cluster. What it does 1. Detects failures — watches Pods, Deployments, StatefulSets, PVCs, Nodes, and Jobs natively via the Kubernetes API 2. Deduplicates by parent — repeated pod restarts from the same Deployment produce one investigation, not one per pod restart 3. Stabilises before acting — a configurable window (default: 120s) filters transient blips before dispatching 4. Investigates in-cluster — an agent Job runs with read-only RBAC, clones your GitOps repo, and inspects the live cluster 5. Opens a PR — with a structured body: summary, evidence, root cause, proposed fix, and confidence level Three possible outcomes per invocation: Outcome When Action --- --- -","default_branch":null,"files":null,"tree":[],"storefront":"/r/lenaxia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lenaxia/k8s-mechanic/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}