MCPcopy
hub / github.com/kubernetes-sigs/kro

github.com/kubernetes-sigs/kro @v0.9.2 sqlite

repository ↗ · DeepWiki ↗ · release v0.9.2 ↗
2,187 symbols 11,407 edges 290 files 931 documented · 43%
README

kro | Kube Resource Orchestrator

Go Report Card GitHub go.mod Go version GitHub License GitHub Repo stars

Kube Resource Orchestrator (kro) is a subproject of Kubernetes SIG Cloud Provider. This project aims to simplify the creation and management of complex custom resources for Kubernetes.

Kro helps you to define complex multi-resource constructs as reusable components in your applications and systems. It does this by providing a Kubernetes-native, vendor agnostic way to define groupings of Kubernetes resources.

Kro's fundamental custom resource is the ResourceGraphDefinition. A ResourceGraphDefinition defines collections of underlying Kubernetes resources. It can define any Kubernetes resources, either native or custom, and can specify the dependencies between them. This lets you define complex custom resources, and include default configurations for their use.

The kro controller will determine the dependencies between resources, establish the correct order of operations to create and configure them, and then dynamically create and manage all of the underlying resources for you.

Kro is Kubernetes native and integrates seamlessly with existing tools to preserve familiar processes and interfaces.

Documentation

Title Description
Introduction An introduction to kro
Installation Install kro in your cluster
Getting started Deploy your first ResourceGraphDefinition
Concepts Learn more about kro concepts
Examples Example resources
Contributions How to get involved

FAQ

  1. What is kro?

    Kube Resource Orchestrator (kro) is a new operator for Kubernetes that simplifies the creation of complex Kubernetes resource configurations. kro lets you create and manage custom groups of Kubernetes resources by defining them as a ResourceGraphDefinition, the project's fundamental custom resource. ResourceGraphDefinition specifications define a set of resources and how they relate to each other functionally. Once defined, ResourceGraphDefinitions can be applied to a Kubernetes cluster where the kro controller is running. Once validated by kro, you can create instances of your ResourceGraphDefinition. kro translates your ResourceGraphDefinition instance and its parameters into specific Kubernetes resources and configurations which it then manages for you.

  2. How does kro work?

    kro is designed to use core Kubernetes primitives to make resource grouping, customization, and dependency management simpler. When a ResourceGraphDefinition is applied to the cluster, the kro controller verifies its specification, then dynamically creates a new CRD and registers it with the API server. kro then deploys a dedicated controller to respond to instance events on the CRD. This microcontroller is responsible for managing the lifecycle of resources defined in the ResourceGraphDefinition for each instance that is created.

  3. How do I use kro?

    To create your custom resource groupings, you create ResourceGraphDefinition specifications. These specify one or more Kubernetes resources, and can include specific configurations for each resource.

    For example, you can define a WebApp ResourceGraphDefinition that defines a WebAppCRD CRD that is composed of a Deployment, pre-configured to deploy your web server backend, and a Service configured to run on a specific port. You can just as easily create a more complex WebAppWithDB ResourceGraphDefinition by combining the existing WebApp ResourceGraphDefinition with a Table custom resource to provision a cloud managed database instance for your web app to use.

    Once you have defined a ResourceGraphDefinition, you can apply it to a Kubernetes cluster where the kro controller is running. kro will take care of the heavy lifting of creating CRDs and deploying dedicated controllers in order to manage instances of your new custom resource group.

    To create an instance of your custom resource groupings, you create an instance of the CRD that your ResourceGraphDefinition specifies. In the WebApp ResourceGraphDefinition example, this would be an instance of the WebAppCRD CRD. kro will respond by dynamically creating, configuring, and managing the underlying Kubernetes resources for you.

  4. Why did you build this project?

    We want to help streamline and simplify building with Kubernetes. Building with Kubernetes means dealing with resources that need to operate and work together, and orchestrating this can get complex and difficult at scale. With this project, we're taking a step in reducing the complexity of resource dependency management and customization, paving the way for a simple and scalable way to create complex custom resources for Kubernetes.

  5. What should I know about API changes?

kro's API is currently at v1alpha1. As kro evolves, we may introduce breaking changes to improve the API. We are committed to providing clear migration paths, deprecation notices, and comprehensive support to help users adapt to any breaking changes. Our goal is to ensure smooth transitions as the project continues to improve.

Community Participation

Development and discussion is coordinated in the Kubernetes Slack (invite link) channel #kro channel.

Please join our community meeting. * Every other Wednesday at 9AM PT (Pacific Time). Convert to local timezone * Add to Google Calendar * Agenda: Public doc * Join us: Zoom meeting * Community meeting recordings: YouTube channel

Code of conduct

Participation in the project community is governed by the Kubernetes Code of Conduct.

Security

See CONTRIBUTING and SECURITY for information.

License

Apache 2.0

Extension points exported contracts — how you extend this code

Type (Interface)
Type represents a parsed SimpleSchema type that can provide dependencies and build OpenAPI schemas. Implementations incl [4 …
pkg/simpleschema/types/types.go
InstanceWatcher (Interface)
InstanceWatcher is the interface the instance reconciler uses to request watches. It is scoped to a single instance and [4 …
pkg/dynamiccontroller/coordinator.go
CRDClient (Interface)
CRDClient represents operations for managing CustomResourceDefinitions [3 implementers]
pkg/client/crd.go
GraphRevisionResolver (Interface)
GraphRevisionResolver resolves compiled graph revisions for a single RGD. Implementations are already scoped to one RGD [2 …
pkg/controller/instance/controller.go
Object (Interface)
(no doc) [4 implementers]
pkg/apis/condition.go
NotificationSender (Interface)
NotificationSender defines the interface for sending LSP notifications to clients. This abstraction allows the DocumentM [1 …
tools/lsp/server/document.go
SchemaLookup (Interface)
SchemaLookup abstracts pointer-stable schema field resolution. [1 implementers]
pkg/graph/parser/parser.go
ResourceGraphDefinitionOption (FuncType)
ResourceGraphDefinitionOption is a functional option for ResourceGraphDefinition
pkg/testutil/generator/resourcegraphdefinition.go

Core symbols most depended-on inside this repo

Get
called by 767
pkg/client/crd.go
Equal
called by 745
pkg/cel/library/omit.go
Create
called by 324
pkg/client/fake/json_safe_client.go
Delete
called by 321
pkg/client/crd.go
String
called by 314
pkg/graph/node.go
WithResource
called by 264
pkg/testutil/generator/resourcegraphdefinition.go
WithSchema
called by 210
pkg/testutil/generator/resourcegraphdefinition.go
Contains
called by 209
pkg/cel/unstructured/valunstructured.go

Shape

Function 1,235
Method 696
Struct 207
Interface 20
TypeAlias 18
FuncType 11

Languages

Go95%
TypeScript4%
Python1%

Modules by API surface

pkg/controller/instance/applyset/applyset_test.go69 symbols
pkg/runtime/node_test.go59 symbols
pkg/controller/resourcegraphdefinition/controller_test.go58 symbols
pkg/cel/unstructured/valunstructured_test.go49 symbols
pkg/cel/unstructured/valunstructured.go40 symbols
pkg/dynamiccontroller/coordinator_test.go37 symbols
tools/krep-crawl/main.go36 symbols
pkg/dynamiccontroller/coordinator.go36 symbols
website/src/pages/roadmap.tsx35 symbols
pkg/controller/resourcegraphdefinition/controller_reconcile_test.go34 symbols
pkg/controller/resourcegraphdefinition/controller_reconcile.go32 symbols
pkg/graph/builder.go31 symbols

Dependencies from manifests, versioned

cel.dev/exprv0.25.1 · 1×
github.com/B1NARY-GR0UP/nwav0.5.2 · 1×
github.com/Masterminds/semver/v3v3.4.0 · 1×
github.com/antlr4-go/antlr/v4v4.13.1 · 1×
github.com/aymanbagabas/go-osc52/v2v2.0.1 · 1×
github.com/beorn7/perksv1.0.1 · 1×
github.com/blang/semver/v4v4.0.0 · 1×
github.com/bmatcuk/doublestar/v4v4.6.0 · 1×
github.com/cespare/xxhash/v2v2.3.0 · 1×
github.com/common-nighthawk/go-figurev0.0.0-2021062206053 · 1×
github.com/davecgh/go-spewv1.1.2-0.20180830191 · 1×

Datastores touched

postgresDatabase · 1 repos

For agents

$ claude mcp add kro \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact