cd /news/ai-tools/i-built-an-ai-that-designs-mlops-inf… Β· home β€Ί topics β€Ί ai-tools β€Ί article
[ARTICLE Β· art-52095] src=dev.to β†— pub= topic=ai-tools verified=true sentiment=↑ positive

I Built an AI That Designs MLOps Infrastructure (Without Letting AI Generate YAML)

A developer built DeployCraft AI, a tool that designs MLOps infrastructure by generating deterministic deployment blueprints from high-level inputs. The system uses a rules engine and Jinja2 templates to produce reproducible YAML manifests, while AI is limited to explaining architectural decisions and acting as a reviewer. The project is available as a live demo on Hugging Face and open-source on GitHub.

read2 min views1 publishedJul 9, 2026

If you've ever started an AI project, you've probably asked yourself questions like:

Should I deploy on Kubernetes or Cloud Run?

Do I need Redis?

Which database fits this workload?

How should I structure CI/CD?

What monitoring stack should I use?

Choosing an architecture is often harder than writing the application itself.

I wanted to see if AI could help with those decisions while keeping the generated infrastructure deterministic and reliable.

That idea became DeployCraft AI.

The Goal

The application asks for a few high-level inputs:

Application Framework

Cloud Provider

Deployment Target

Database

Vector Database

Cache

Monitoring

Authentication

Traffic

Budget

High Availability

Instead of generating code from a prompt, it builds a structured deployment blueprint.

The output includes:

βœ… Architecture reasoning

βœ… Architecture score

βœ… Mermaid diagram

βœ… Docker Compose / Kubernetes / Cloud Run manifests

βœ… GitHub Actions workflow

βœ… Security report

βœ… Monitoring recommendations

βœ… Cost estimation

βœ… Downloadable ZIP package

The Most Important Design Decision

One thing I intentionally didn't do:

I never let the LLM generate deployment manifests.

Instead, I separated the project into three layers.

                       Configuration
                           β”‚
                           β–Ό
                      Rules Engine
                           β”‚
                           β–Ό
                         Blueprint
                     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                     β”‚               β”‚
                     β–Ό               β–Ό
                  Generators     AI Advisor
                     β”‚               β”‚
                     β–Ό               β–Ό
                    YAML          Explanations

Everything infrastructure-related is deterministic.

The rules layer decides:

which services exist

networking

environment variables

autoscaling

storage

deployment topology

No AI involved.

Template-Based Infrastructure

Once the blueprint is built, Jinja2 templates generate:

Docker Compose

Kubernetes manifests

Cloud Run YAML

GitHub Actions workflow

This means every deployment file is reproducible.

AI Only Explains

The LLM receives the architecture and answers questions like:

Why Cloud Run?

Why PostgreSQL?

Why Redis?

What are the risks?

How could this scale?

The AI becomes an architecture reviewer rather than an infrastructure generator.

I found this separation makes the outputs much more trustworthy.

Some Interesting Challenges

A few things that took more work than expected:

Supporting multiple deployment targets

Each target needs different templates while sharing the same architecture model.

Making AI output reliable

LLMs occasionally fail or return unexpected responses.

Instead of crashing the application, I implemented graceful fallbacks so the UI always remains usable.

Architecture scoring

Rather than asking AI for a score, the application evaluates:

Security

Scalability

Reliability

Cost Efficiency

Observability

using deterministic rules.

Packaging everything

Instead of displaying lots of text, the application bundles every generated artifact into a downloadable ZIP.

Tech Stack

Python

Gradio

Hugging Face Inference API

Jinja2

Docker

Kubernetes

Google Cloud Run

GitHub Actions

What I Learned

This project reinforced something I've been thinking about for a while:

AI doesn't need to replace software engineering.

It becomes much more useful when it's responsible for reasoning, while deterministic code remains responsible for correctness.

That balance made the application significantly more reliable.

Try It

🌐 Live Demo: https://huggingface.co/spaces/Upshivam786/deploycraft-ai

πŸ’» GitHub: https://github.com/Upshivam786/DeployCraft-AI/tree/main

I'd appreciate any feedback or suggestions from people working in DevOps, Cloud Engineering, or MLOps.

── more in #ai-tools 4 stories Β· sorted by recency
── more on @deploycraft ai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/i-built-an-ai-that-d…] indexed:0 read:2min 2026-07-09 Β· β€”