Slide 1

Slide 1 text

#KubeCon #CloudNativeCon GitOps Without You Writing YAML How Flux Grounds AI Agents in Real APIs Stefan Prodan · Flux core maintainer, ControlPlane

Slide 2

Slide 2 text

Agents are becoming the YAML engineers humans never wanted to be. The YAML still exists. You just don’t write it anymore.

Slide 3

Slide 3 text

The Near Miss Agent-written YAML is almost right. In GitOps, almost right lands in main. Agent writes Pull request Merged Reconcile a HelmRelease looks plausible to main fails on apply Hallucinated fields Invented enum values Stale API versions Keys that never existed in the schema Plausible strings the API rejects Last year’s API from training data

Slide 4

Slide 4 text

Training data Why Agents Guess Every way an agent checks its work today has a cost. Projects add CRD fields every release. Models learned last year’s. A live cluster Needs the right CRDs installed and credentials an agent shouldn’t hold. Web search Slow, token-hungry, and often out of date.

Slide 5

Slide 5 text

Closing the Loop - Three Layers Catch it before merge, not at reconciliation. Ground Validate Audit Schema Catalog Flux Schema Agent Skills MCP server with the real API, field by field, for 100+ projects API server semantics, locally and in CI Flux expertise, packaged by the maintainers

Slide 6

Slide 6 text

Ecosystem Schema Catalog JSON Schemas for Kubernetes, OpenShift, CNCF projects and AWS, Azure, GCP operators. schemas.fluxoperator.dev/catalog ~1M requests a day on schemas.fluxoperator.dev 100+ ~9,000 projects schemas CNCF and cloud operators built-in kinds and CRDs Daily 6 rebuilds minor versions from stable releases Kubernetes, OpenShift, Flux

Slide 7

Slide 7 text

Schema Catalog - MCP Server A free public MCP server. No authentication, no API key. Setup for every agent: schemas.fluxoperator.dev/agents > Add a HelmRelease for podinfo, chart from an OCIRepository ● flux-schema-catalog · search("HelmRelease") helm.toolkit.fluxcd.io/v2 HelmRelease ● flux-schema-catalog · fields("HelmRelease", "spec.chartRef") spec.chartRef.kind (required) enum=OCIRepository|HelmChart|ExternalArtifact spec.chartRef.name (required) ● Wrote podinfo/release.yaml with chartRef → OCIRepository/podinfo

Slide 8

Slide 8 text

Grounded vs Guessing Benchmark: four tasks on recently shipped CRDs. Two lookups, a new manifest, a review. Tasks correct From training 4 4 1 0 Opus Method and runs: schemas.fluxoperator.dev/agents With MCP Haiku Same score as web search, with: 57% 80% ¼ fewer tokens fewer tool calls session cost

Slide 9

Slide 9 text

Flux Schema - API Server Semantics, Locally The API server’s schemas and CEL rules, run locally and in CI. A failed pull request instead of a failed reconciliation. $ flux schema validate ./manifests -s ecosystem manifests/releases.yaml helm.toolkit.fluxcd.io/v2/HelmRelease/apps/frontend is invalid: cel violation - /spec: Invalid value: either 'chart' or 'chartRef' must be set manifests/sources.yaml source.toolkit.fluxcd.io/v1/Bucket/apps/frontend is invalid: schema violation - /spec: additional properties 'force' not allowed Summary: 5 resources found in 2 files - Valid: 3, Invalid: 2, Skipped: 0 github.com/fluxcd/flux-schema · CI setup: schemas.fluxoperator.dev/cli

Slide 10

Slide 10 text

Flux Agent Skills Official skills from the Flux maintainers. Agents load them on demand. github.com/fluxcd/agent-skills gitops-knowledge gitops-repo-audit gitops-cluster-debug Answers Flux questions and writes YAML for every Flux CRD, validated with Flux Schema. Audits a GitOps repository from local files. No cluster access needed. Debugs live clusters through the Flux MCP Server, down to the root cause.

Slide 11

Slide 11 text

Agent Skills - Evals Biggest gains on APIs newer than the training data. Scenario score Baseline 100% 72% 98% 69% 96% 71% With skill 93% 71% Newer APIs 33% → 100% ResourceSets and preview environments, baseline vs with the skill. knowledge Opus knowledge Sonnet repo-audit Opus Benchmarks: github.com/fluxcd/agent-skills/tree/main/benchmarks repo-audit Sonnet

Slide 12

Slide 12 text

Reviewed by the Agent Verified by Flux Decided by You

Slide 13

Slide 13 text

gitops-repo-audit: Six Phases Local files only. No cluster access. 1 2 3 4 5 6 Repository discovery Manifest validation API compliance Best practices Security review Report flux schema discover flux schema validate flux migrate --dry-run maintainer checklist, matched to the repo pattern severity based on the tenancy model Verified by Flux Reviewed by the Agent Critical Warning Info Decided by You

Slide 14

Slide 14 text

Try It Today # Validate manifests $ flux plugin install schema $ flux schema validate ./manifests -s ecosystem # Install the Flux agent skills, cosign-verified $ flux plugin install operator $ flux operator skills install ghcr.io/fluxcd/agent-skills \ --agent claude-code # Ground your agent in the Schema Catalog $ claude mcp add --transport http flux-schema-catalog \ https://schemas.fluxoperator.dev/mcp

Slide 15

Slide 15 text

Flux Roadmap v2.11 fluxcd.io/roadmap Targeting Q1 2027. 1 2 3 SPIFFE integrations Arbitrary dependencies Alerting AWS IAM Roles Anywhere and GCP Workload Identity Federation with X509-SVIDs Kustomizations and HelmReleases that depend on any Kubernetes resource OpenTelemetry traces, custom event metadata and alert templating

Slide 16

Slide 16 text

Contribute Add to the catalog github.com/controlplaneio-fluxcd/schema-catalog Report a skill gap github.com/fluxcd/agent-skills/issues Improve Flux Schema github.com/fluxcd/flux-schema Talk to the maintainers #flux on CNCF Slack, Flux dev meetings

Slide 17

Slide 17 text

Thank you Questions? · github.com/stefanprodan