r/platformengineering • • 6d ago

Anyone using an AI agent for EKS upgrades?

I'm building an agent that prepares EKS upgrades: checks add-on compatibility and deprecated APIs, then opens Terraform PRs for a human to review. It's read-only and can't merge or apply.

Has anyone built something similar? Curious which MCP servers you used and how you scoped permissions. Open to swapping ideas or collaborating.

5 Upvotes

4 comments sorted by

1

u/spirosoik 5d ago

founder @ r/NOFireAI_

We did build agent studio https://www.nofire.ai/product/agent-builder which combines production context graph and deterministic workflows (along with skills) which agents can replay/debug and see in which step failed or paused with control policies and approvals. Happy to show you how we do use this internally for various production operations:
- EKS Upgrades
- Post-deployment watch and pause Argo Rollouts or Feature flag rollouts
- Bot Sentinel to identify cloudflare abuse and automatically block ips
many more.

1

u/Jan_Stepan 2d ago

Can your agent prepare the Terraform PR just from EKS upgrade insights and the repo, or does one of your checks need to query the Kubernetes API directly? I’m asking because EKS already flags recent use of deprecated APIs and checks whether managed add-ons are compatible with the next Kubernetes version.

1

u/YounesHairej 1d ago

Read-only plus PRs is the right shape. A few things I'd sort out early.

For permissions, I'd scope two layers. The agent's IAM role should only be able to read the EKS APIs (upgrade insights are just ListInsights and DescribeInsight). If it also queries the cluster, give it a read-only access entry, not cluster-admin. Keep UpdateClusterVersion, UpdateNodegroupVersion and UpdateAddon off that identity entirely.

Upgrade insights already flag deprecated built-in APIs and whether managed add-ons are compatible with the next version. They don't cover CRDs or self-managed add-ons, so reading the Kubernetes API directly is still worth it.

Have the agent write the rollback plan into the PR, not just the upgrade steps. EKS can roll back the control plane now, but only within 7 days of the upgrade and only one minor version. Add-ons and managed node groups aren't included, so they need their own plan.

And the prod PR should link to the same upgrade already running cleanly on non-prod for a while.

Full disclosure, I'm building in this space (Aokumo AI: approvals, rollback and audit trails for agent changes on cloud and K8s), so happy to compare notes.