Skip to content

Add examples of Multi-tenant SaaS application #786

@kennygt51

Description

@kennygt51

Feature Description

Problem Statement:
The examples collection lacks a Multi-tenant SaaS example, which is a common and complex use case in modern cloud-native applications. I would say, a lot of developers need guidance on implementing secure tenant isolation, resource management, RBAC, and scalability patterns using kro ResourceGraphDefinitions.

Proposed Solution:
Add a new example at examples/kubernetes/multi-tenant-saas/ with:

  • TenantEnvironment RGD: Creates isolated namespaces with RBAC, ResourceQuotas (Basic/Premium plans), and NetworkPolicies
  • SaaSApplication RGD: Deploys applications with auto-scaling, health checks, and ingress configuration
  • Sample instances: Demonstrates different service plans and tenant configurations
  • Comprehensive documentation: Quick start guide, architecture diagrams, and troubleshooting

Key features:

  • Complete tenant isolation using Kubernetes namespaces
  • Production-ready security (RBAC, NetworkPolicies)
  • Plan-based resource management
  • Auto-scaling integration

File structure:

examples/kubernetes/multi-tenant-saas/
├── README.md
├── tenant-environment.yaml
├── saas-application.yaml
├── tenant-instance.yaml
└── app-instance.yaml

This is just an example and may change during implementation

  • Please vote on this issue by adding a 👍 reaction to the original issue
  • If you are interested in working on this feature, please leave a comment

Metadata

Metadata

Assignees

Labels

kind/documentationCategorizes issue or PR as related to documentation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions