Skip to content

kro Plugin for Headlamp — 0.1.0-alpha

Choose a tag to compare

@illume illume released this 31 Jul 15:57
· 1031 commits to main since this release

First public release. This is an alpha release. Views and behavior may
change before v1.0. Feedback and bug reports are very welcome.


About

kro (Kube Resource Orchestrator) is a Kubernetes project
that lets platform teams define new, simplified cluster APIs. A
ResourceGraphDefinition (RGD) describes a graph of Kubernetes resources and
the simple schema developers interact with; kro generates a CRD from it and
reconciles instances of that API into the underlying resources, resolving
environment-specific values (like storage classes) per cluster.

Headlamp is an open-source, extensible Kubernetes web
UI. This plugin brings kro's resource graphs into Headlamp so platform teams
and developers can see both sides of the abstraction — the API that was
defined, and the real resources it expands into — without leaving the UI.

What This Plugin Does

The kro Plugin for Headlamp (@headlamp-k8s/kro) adds dedicated views for
ResourceGraphDefinitions, for the instances of every API kro generates, and
for the resources kro creates on their behalf. Everything updates live via
Kubernetes watches — no polling, no manual refresh.

Highlights

  • ResourceGraphDefinition list and detail: generated kind/apiVersion, state,
    conditions, composed resources ordered by kro's published topological
    order (with dependency and external-reference annotations), and a
    flattened SimpleSchema summary
  • Dynamic instance views for every Active RGD — the generated CRD is
    discovered from the cluster, so new APIs appear automatically
  • Sub-resources with resolved values: each resource kro created for an
    instance, with health, a link to its native Headlamp page, and the
    environment-resolved values that matter (PVC storageClassName, Deployment
    ready count, Service type/clusterIP)
  • Map integration: RGDs, instances, and kro-managed resources in Headlamp's
    Map view, with "View in Map" deep links from detail pages
  • New Instance action: Headlamp's YAML editor pre-filled with a minimal
    valid instance derived from the RGD's SimpleSchema
  • Graceful degradation: a friendly install pointer when kro isn't on the
    cluster, and per-section RBAC degradation with the server's message

Screenshots

ResourceGraphDefinitions RGD detail: composed resources with externalRef
RGD list RGD detail
Instance sub-resources: Bound PVC with resolved storageClass Global Map with kro nodes
Instance sub-resources Map

Why This Plugin Matters

kro's whole value is the resource graph — but that graph normally lives in
YAML and kubectl output. With this plugin:

  • Platform teams can verify what an RGD actually expands into, including
    dependency ordering and conditional resources
  • Developers can create and edit instances from the UI and watch
    reconciliation happen live
  • The portability story becomes visible: the same instance YAML binding a
    different StorageClass per cluster is shown in place, without navigating
    away

Compatibility

  • kro v1alpha1 APIs (verified against kro 0.9.2)
  • Works with any RGD: instance views are generated dynamically from the
    cluster's CRDs
  • Headlamp >= 0.22 (desktop, in-cluster, web, docker-desktop)

Known Limitations (alpha)

  • Per-RGD and per-instance graphs are available through the global Map view
    rather than embedded on detail pages; embedding is blocked on exposing
    Headlamp's Map renderer to plugins (kubernetes-sigs/headlamp#6556). The
    plugin will adopt embedded graphs when that ships.
  • The Map view can intermittently stay in its loading state on some clusters
    due to a core aggregation issue (kubernetes-sigs/headlamp#6555),
    independent of this plugin.

Links