GitOps Without You Writing YAML

GitOps Without You Writing YAML

KubeCon NA 2026 talk on how Flux grounds AI Agents in real APIs

Stefan Prodan

November 11, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

17 slides
  1. #KubeCon #CloudNativeCon GitOps Without You Writing YAML How Flux Grounds

    AI Agents in Real APIs Stefan Prodan · Flux core maintainer, ControlPlane
  2. Agents are becoming the YAML engineers humans never wanted to

    be. The YAML still exists. You just don’t write it anymore.
  3. 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
  4. 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.
  5. 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
  6. 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
  7. 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 <string> (required) enum=OCIRepository|HelmChart|ExternalArtifact spec.chartRef.name <string> (required) • Wrote podinfo/release.yaml with chartRef → OCIRepository/podinfo
  8. 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
  9. 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
  10. 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.
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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

More Decks by Stefan Prodan

Other Decks in Technology