Skip to main content
Version: 0.10.0-rc.0

Examples

This section provides a collection of examples demonstrating how to define and use ResourceGraphDefinitions and Graphs in kro for various scenarios. Each example showcases a specific use case and includes a detailed explanation along with the corresponding YAML definitions.

Basic Examples

Advanced Examples

  • Deploying CoreDNS Learn how to deploy CoreDNS in a Kubernetes cluster using kro ResourceGraphDefinitions, including the necessary Deployment, Service, and ConfigMap.

  • SaaS Multi-Tenant This example demonstrates how to create a multi-tenant SaaS application using Kro ResourceGraphDefinitions. It creates isolated tenant environments with dedicated applications, following a hierarchical structure of ResourceGraphDefinitions.

Graph Examples

The Graph API is alpha and disabled by default. These examples show the patterns it enables.

  • Namespace Decorator Watch labeled Namespaces and create a default-deny NetworkPolicy in each one, with no CRD or instance.

  • Ingress Fan-In Aggregate every labeled Service into a single Ingress with one rule per Service.

  • CoreDNS Bundle Install CoreDNS as one dependency-ordered, health-checked object.

  • Singleton Controller A small controller written as a Graph: priority-based ownership of a shared resource, with status written back to every claimant.

Brought to you with ♥ by SIG Cloud Provider