Trendveris
Live Coverage
AI & ML

Kubernetes Resource Composition Could Replace Repeated Platform Glue

Kro turns recurring Kubernetes resource wiring into reusable compositions, with dependency order inferred from references and optional APIs for application teams.

Oct 29, 2026 | 3 min read
Sign in to save

Abstract 3D digital rendering of fragmented geometric planes in a loop above a red grid, representing Kubernetes resource graphs.

Platform teams often spend engineering time on controllers that do little beyond connecting Kubernetes objects: create a Deployment, expose it through a Service, then copy the Service’s reported hostname into a ConfigMap. The first controller may be straightforward to build with Kubebuilder. Repeating the work across a platform creates a less visible cost: each controller brings its own reconciliation bugs, upgrades and operational burden, even when the underlying behavior is nearly identical.

That repetition points to a missing layer in Kubernetes. The cluster can define custom resource types, run controllers, track field ownership through server-side apply, evaluate expressions with CEL, and validate fields against OpenAPI schemas. But those tools don’t, by themselves, describe several resources as one composition, establish their dependencies, or say that one object should wait for a value from another.

Why existing tools keep adding orchestration

Tools that manage multiple resources each supply parts of this missing behavior. Helm renders manifests, while Helm 4 adds server-side apply and waits for resource status. Argo CD offers sync waves and hooks to control application order, along with health checks to assess progress. Crossplane provides compositions and functions, and its v2 release composes native Kubernetes resources directly. Operator authors commonly implement the same mechanics in Go.

The details differ, but the recurring pattern is familiar: multiple objects, relationships between them, values passed along those relationships, and a process that keeps checking the cluster. Each tool fills in what it needs, whether that’s ordering, readiness, ownership or in-cluster evaluation. My read is that this repeated work signals an opportunity for a shared primitive, rather than another platform that bundles every workflow.

That’s the premise behind kro, the Kube Resource Orchestrator. In September 2025, the project moved to Kubernetes SIG Cloud Provider, positioning its work as a building block other systems can use.

Describe the relationships once

Diagram showing parts of the glue controllers that are shared, vs those that differ.

kro’s ResourceGraphDefinition turns the wiring behind a controller into data that one controller can interpret. The approach builds on Kubernetes capabilities that already exist: resource definitions, OpenAPI schemas, CEL and server-side apply. A ResourceGraphDefinition combines two pieces: a composition template describing the resources and their connections, and an API that includes a schema, a generated CRD and the instances application teams create.

Dependencies come from the references in CEL expressions. Consider the ConfigMap that needs a hostname reported by a Service. Its template refers to the Service’s hostname, which gives kro the relationship it needs to determine that the Service must be ready first. There’s no separate list of steps to keep in sync with the expression.

That design also supports type-checking expressions against OpenAPI before an instance is created. And because kro derives ordering from dependencies, a reference itself carries the information about which resource depends on which. If a relationship is instead described both in a reference and in a separate ordering rule, the two descriptions can diverge after changes. Inferred dependencies avoid that extra source of truth.

Fewer controllers still means APIs to own

For application teams, a ResourceGraphDefinition can expose a familiar Kubernetes API: teams use kubectl, RBAC and GitOps to work with instances. A platform team could replace a collection of hand-written glue controllers with definitions interpreted by a shared controller.

But making an API easier to create doesn’t make it free to maintain. Once application manifests, permissions and delivery pipelines depend on a custom resource, removing a field can break consumers the platform team may not know about. kro blocks schema changes that would break existing instances unless the author explicitly allows them. That guardrail recognizes the real tradeoff: fewer codebases to maintain can still leave a platform team responsible for the same number of APIs. Count the APIs, not just the controllers.

Graphs can react without a custom API

Some compositions need a reusable API; others should simply respond to objects already present in the cluster. A platform might want to apply a default-deny NetworkPolicy to labeled namespaces, gather labeled Services into an Ingress, or install and maintain a shared DNS stack. Those behaviors don’t necessarily need application teams to create an instance of a new resource.

kro 0.10 adds a namespaced Graph for this case. It contains the composition without a schema, CRD or instances. In the abbreviated Ingress example, the Graph observes existing Services without owning them, then creates and owns an Ingress based on the matching Services:

apiVersion: kro.run/v1alpha1
kind: Graph
spec:
nodes:
- id: services
ref: # read only, never owned
kind: Service
metadata:
selector: {matchLabels: {expose: "true"}}
- id: ingress
template: # created and owned
kind: Ingress
spec:
rules: >-
${services.map(svc, {"host": svc.metadata.name + ".example.com", ...})}

No one needs to create an instance. A Service that gains the matching label becomes part of the composition and gets an Ingress rule; when the label is removed, that rule goes away.

Architectural diagram comparing kro 0.9 and kro 0.10

The Graph option clarifies what sits at the center of kro’s model. Kubernetes already has CRDs as a way to define APIs. ResourceGraphDefinitions make it easier to build an API that represents a composition, but the underlying composition is useful without that API. It can respond directly to changes in cluster state, with a declarative loop keeping the connected resources aligned.

Look for the composition hiding in the workflow

Many platform workflows already contain resource graphs, though their relationships may be encoded indirectly. A naming convention connects two manifests through a shared string. Sync waves or hooks express dependencies as step numbers. A script copies a status field from one object into another. These mechanisms can work, but the connections sit outside the objects they link, and may not continuously respond to what is happening in the cluster.

Diagram comparing indirect resource dependency methods with direct, continuous object references.

With kro, a CEL reference expresses that connection between objects and is evaluated as part of the graph. The same idea extends beyond a custom resource: an operator can be viewed as a composition with an API in front of it, while a pipeline that applies manifests in order is a composition triggered by a commit. A runbook that creates a namespace, quotas and role bindings has the same basic shape, triggered by a ticket.

Kubernetes has absorbed useful patterns before. Rolling updates once lived in a kubectl subcommand; the Deployment controller later made the behavior a reusable part of the platform. kro, a Kubernetes SIG Cloud Provider subproject on GitHub, makes a case for a similar shift in resource composition. The practical question for platform teams is where they already create objects, pass values and wait for readiness—and whether those relationships could be maintained as reusable, declarative data.

The post Why Kubernetes platforms keep rebuilding a layer they could share appeared first on The New Stack.

Source: Adam Crowder · thenewstack.io
Sign in to join the discussion.