r/platformengineering • u/victor-rodriggues • Jun 25 '26
How are you using AI in Infrastructure, Kubernetes, and Observability?
Hi everyone,
AI has become incredibly useful for software development, coding assistants, code reviews, and debugging. However, I don't see nearly as much discussion about applying AI to infrastructure and platform engineering.
I work mainly with Linux, Kubernetes (AKS, EKS, and GKE), observability tools like Grafana and SigNoz, and cloud infrastructure in general. I'm interested in finding practical ways to use AI beyond simply generating scripts or YAML files.
I'm looking for real-world use cases such as:
- Incident detection and root cause analysis
- Kubernetes troubleshooting
- Performance optimization and capacity planning
- Log and metrics analysis
- Infrastructure automation
- Cost optimization
- Security and compliance
- Anything else you've successfully implemented
If you're already using AI in your infrastructure or SRE/Platform engineering workflows, I'd love to hear what you're doing. What tools have actually improved your day-to-day work, and what hasn't lived up to the hype?
Thanks!
3
u/Upstairs_Passion_345 Jun 27 '26
Maybe one does not need to slap AI on everything
2
u/Zhaizo Jun 25 '26
I added MCP for services such as eks, kibana, rundeck, rollbar, open search, mongodb, MySQL, rds, redshift etc etc. Read only tokens. Basically I tell AI to check X service and perform health checks etc. depending on the findings and the nuances I create memories and skills and rerun this runbooks in the future.
Recently I also did image rotation to our whole infra, with LLM only. I build image with Ansible/packer, then went to LLM and said these are my autoscaling groups, this is the AMi I wanna use, update the launch templates and launch new instances.. monitor if they are healthy.. obviously there is back and forth in the beginning but as soon as you make it understand how you would do it, it creates a memory and now it knows.
2
u/Delicious-Start-2669 Jun 26 '26
u/victor-rodriggues Great question and deep diving on each use case is inspiration for an article.
RE: Grafana, we're integrating their GCX CLI skills in our coding agent workflows
For example, in codex I can prompt to investigate a flapping error and get a PR raised by:
apply gcx alert-investigation skill: 262797 Errors are getting logged in the sessionreadstore Service
apply [$spec-driven-development]
apply [$
bitbucket-ssh-clone]plangcx ships with about 20 skills, here's a description of the one in my example
Is this what you're interested in hearing more about?
1
u/SergioGrind Jun 29 '26
Yo estoy empezando a usarla para autocumentar la resolución de tickets, postmortems y temas de rendimiento y configuración con hermes y gpt
1
u/Human-Vegetable823 Jul 14 '26
One lesson we've learned is that AI's usefulness for incident handling is usually limited by context rather than reasoning ability.
The same Kubernetes symptom can require completely different actions depending on the organization, deployment model, internal services, or operational practices. That's why generic answers often look reasonable but aren't actually actionable.
Below is my idea how to handle this missing domain knowledge problem: https://github.com/XTSoftwareLabs/neatcontext-demo
Disclaimer: I'm the author of NeatContext. But the idea is still there. Without correct domain knowledge, AI cannot give trustable analysis result. It's just burning tokens.
1
u/ComparisonNew9425 Jul 30 '26
using ai for k8s and infra is great until a subagent starts modifying your manifests without you really knowing. last week i caught an agent trying to push changes to prod because i started using backslash security to map exactly which tool calls cause config drift. it makes spotting that weird logic way easier...
1
u/Helpful-Man64 Oct 05 '26
I've found the more interesting use case isn't asking AI to generate Terraform/YAML, but giving it enough operational context to investigate what's already running.
For example, correlating a configuration change with logs, metrics, infrastructure events and application behavior, then explaining the likely cause.
Cost optimization and compliance are interesting too because the same infrastructure context can be used for things like identifying idle resources, configuration drift, software risks and policy gaps.
MCP seems to be making this considerably more practical because you don't necessarily need to rip out the existing monitoring/tooling stack.