A chart that renders without errors is not a chart that works. A pipeline that shows green is not a pipeline that tested anything. Last week a team shipped a "small" values.yaml change — one replica count, one resource request — and spent the night watching pods get OOMKilled because the memory limit was below what the JVM grabs at startup. The Helm template passed. The lint passed. Nothing in CI had an opinion about whether the container would survive.
That gap — between "syntactically valid" and "actually runs" — is where an LLM earns its keep, and also where it lies most confidently. Below are five prompts I keep in rotation for Docker, Kubernetes, Helm, and CI/CD work, each with the task it fits and the part you still have to check by hand before anything reaches prod.
First, the layer nobody reads: the Dockerfile
Most Dockerfiles are written once, copied forever, and never measured. A prompt that asks for a rewrite in the abstract gets you a generic multi-stage template. A prompt that hands the model the actual file and asks it to justify each layer gets you something you can act on. More on the topic: “From Dockerfile to Debugging Pods: 12 Prompts That Turn an LLM Into Your DevOps Partner”.
Prompt:
Here is my Dockerfile and the output of `docker history --no-trunc <image>`.
For every layer: what does it add, is it needed at runtime, and what is the
cheapest way to remove it? Then rewrite the file as a multi-stage build.
Constraints: base image pinned by digest, dependencies installed before source
copy, no build tools in the final stage, non-root user. Show the before/after
size estimate per stage and flag anything that needs a rebuild to verify.
Why it works: docker history gives the model real layer sizes, so it stops guessing. The "flag anything that needs a rebuild" clause is the important one — it forces the model to admit which claims are unverified. More on the topic: “From CrashLoopBackOff to a Working Helm Chart: 12 Prompts That Turn an LLM Into Your Kubernetes Sidekick”.
A typical result from a Node service: the model spots that npm install runs before COPY.., so every source change reinstalls everything, and that dev dependencies sit in the final image. The measured win is usually the cache fix, not the base image swap. Verify with docker build --no-cache and compare docker images before and after — the model's size estimate is often optimistic by 10–20%. More on the topic: “Docker, Kubernetes, and the LLM That Asks "Why?": Prompts That Diagnose a Pod Instead of Blindly Restarting It”.
For a deeper look at reading layers and failed deploy steps, this walkthrough is worth your time: Your Image Is 2 GB and Nobody Knows Why: LLM Prompts That Read the Dockerfile, the Layers, and the Failed Deploy Step.
When the pod dies, hand the model evidence, not adjectives
"My pod is crashing, what's wrong" produces a checklist. "Here are the last 200 log lines, the exit code, and the manifest — name the most likely cause and the one command that confirms it" produces a diagnosis.
The distinction matters because CrashLoopBackOff has a small set of real causes: a failing liveness probe, a missing config or secret, a permissions error on a mounted volume, an OOMKill, or an application that exits on a bad startup dependency. The model can rank these fast — but only if you give it the exit code. Exit 137 means SIGKILL, usually OOM; exit 1 means the app gave up on its own; exit 143 means SIGTERM, often a probe killing a slow starter.
Prompt:
Pod is in CrashLoopBackOff. Below: kubectl describe output, last 200 log
lines, container exit code, and the deployment manifest. Rank the three most
likely causes with the evidence for each. For every cause give one command
that confirms or eliminates it. Do not suggest restarting the pod.
That last sentence is not a joke. Left alone, models love "try restarting" — which is exactly the reflex that turns a five-minute fix into a week of flapping.
The same evidence-first approach pays off when you are reviewing manifests before they ship: Your YAML Isn't Too Specific for an LLM: How to Prompt Kubernetes and Terraform Reviews That Catch Crashes Before Prod.
The Helm chart that renders and still breaks
helm template proves your chart produces YAML. It proves nothing about whether that YAML is sane. The failures that bite are boring: a resource limit below the request, a values.yaml default that silently overrides a chart default, a readiness probe pointing at a port the service does not expose.
A prompt that asks for a "good Helm chart" returns boilerplate. A prompt that asks for an audit against a checklist returns findings.
Prompt:
Audit this Helm chart for deploy-time failures, not style. Check: requests vs
limits per container, probes matching actual ports and startup time, values.yaml
defaults vs chart defaults (list every key the chart sets that values.yaml
silently overrides), image tag pinned (not :latest), and whether every template
reference resolves against values.schema.json. Output a table: issue, file,
line, why it breaks at deploy, fix.
Run this on a chart you inherited and the override list is usually the surprise — three or four keys where values.yaml quietly wins over what the chart author intended. That is a bug that only shows up in one environment, which is the worst kind.
Helm review pairs naturally with reading resource limits and probe behaviour under load: Before the Cluster Falls: LLM Prompts That Read Pods, Helm Charts, and Resource Limits Better Than a Tired On-Call.
A pipeline that fails when it should
The most expensive CI/CD bug is a green pipeline that tested nothing. A continue-on-error: true left in from debugging. A test step that runs || true. A cache key so broad that stale dependencies get restored and the build "passes" against code that no longer compiles.
Ask the model to read the workflow as an adversary, not as a formatter.
Prompt:
Here is my GitHub Actions workflow. Act as a release engineer trying to ship
a broken change past it. List every path where a failing test, a broken build,
or a vulnerable dependency could still produce a green run. For each: the line,
the scenario, and the minimal fix. Then tell me which steps could be skipped
entirely due to caching and how to key the cache correctly.
Typical findings: secrets echoed into logs by a debug step, a matrix job where one leg is allowed to fail, and a cache key on package-lock.json hash that is correct — but a restore-keys fallback that quietly pulls an older cache when the hash misses. That last one is subtle and models catch it reliably when you ask about caching specifically.
The broader question of which CI system to build on, and how to prompt around it, is covered here: CodePipeline vs GitHub Actions: A CI/CD Pipeline Choice for AWS — and How to Master It with.
Where the model is useful and where you check by hand
After enough of these rounds, the pattern is clear. The LLM is genuinely good at three things: reading evidence you paste in (logs, exit codes, docker history, rendered YAML), enumerating failure modes you did not think of, and turning a vague "make it better" into a concrete checklist. It is bad at anything that requires knowing your runtime — actual memory ceilings, real startup times, which secret exists in which namespace. More on the topic: “Docker and Kubernetes: What Really Breaks in Production and How to Go from docker run to a Managed Cluster”.
| Task | Trust the model | Verify by hand |
|---|---|---|
| Dockerfile layer analysis | Ranking of waste, cache order | Final image size after rebuild |
| Pod crash diagnosis | Candidate causes from exit code | The confirming kubectl command |
| Helm chart audit | Override list, probe mismatches | Render and diff against the live release |
| CI/CD workflow review | Hidden green paths | One deliberate failing commit |
That last row is the rule I would tattoo on every pipeline: before you trust a workflow, push a commit that must fail and watch it fail. If it goes green, the model's review was right and your pipeline is the problem.
What to actually do on Monday
The pattern across all five prompts is the same: give the model evidence, ask for ranked causes or a findings table, and demand that it name what it could not verify. That structure is what separates a useful answer from a confident-sounding one.
Start with the workflow review — it is the cheapest to run and the most likely to find something real. Then run the Helm audit against a chart you already have in prod. Paste the output into a PR comment, not into a chat window, so the next person sees the reasoning.
And keep one habit: every time the model claims something about your infrastructure, ask it which command would prove it. If it cannot name one, that claim does not go into the deploy.