When namespace-based multi-tenancy with Capsule fits a shared cluster
A platform team often needs to give several teams or customers their own namespaces on one cluster without handing out cluster-wide rights. Plain namespaces and RBAC can isolate them, but every new namespace, quota and policy then becomes a manual task for a cluster administrator. Capsule adds a tenant object that groups namespaces under one owner, so the owner can self-serve namespaces while the platform team keeps the guardrails. A tenant is a set of namespaces that share policies, quotas and ownership. A tenant owner is the user or group that Capsule grants administrative rights over that tenant's namespaces, and only over those namespaces, not over the cluster.
Namespace-based tenancy fits best when the tenants trust each other to a reasonable degree, such as internal product teams in one organization, and when they run workloads that share the same node pool and Kubernetes version. Capsule does not turn a namespace into a hard security boundary, so the decision depends on what a compromised tenant could reach through the shared control plane and nodes. Compare this with a dedicated cluster per team, which gives the strongest separation at the cost of more clusters to upgrade and operate, and with a virtual control plane per tenant, which gives each tenant its own API server inside a shared host cluster. Neither is ranked above the others here. Confirm with your security and compliance teams which isolation level your regulators or customer contracts require before you pick a model.
Before you commit, check three things in your environment: how many tenant owners will create namespaces without a platform ticket, which cluster-scoped resources those owners would still need (for example, custom resource definitions or storage classes), and whether your audit and network policy controls can attribute actions to a tenant. Capsule's own documentation describes its tenant model and supported features for the version you plan to run, so confirm those details there and in a proof of concept on a non-production cluster.
How tenants, owners and namespaces relate in Capsule
The diagram starts with the cluster administrator, who defines a Tenant and assigns an owner. The tenant owner then creates namespaces through self-service, and Capsule applies the tenant's quotas and rules to each one. Users reach the API through capsule-proxy, which limits what they can list to their own tenant. The dashed boundary separates tenant users from cluster administrators, so check that no tenant role can change tenant definitions or cluster-wide settings.
Tenant owners create namespaces, while Capsule and capsule-proxy enforce the tenant boundary.
What Capsule controls: owners, quotas, rules and replication
A Capsule tenant is a cluster-scoped resource that groups namespaces under one or more owners. The platform team defines the tenant, names its owners and decides who may create namespaces inside it. Owners can then create, label and delete their own namespaces through normal Kubernetes tooling without filing a ticket, and Capsule applies the tenant's rules to each new namespace as it appears. The platform team still controls the tenant boundary, the owner list and the policies that every namespace inherits.
- Platform team configures: the Tenant object, its owner list (users or groups) and the owner kinds allowed to act on the tenant.
- Tenant owners do without a ticket: create and delete namespaces inside their tenant, and manage workloads in them, within the limits set on the tenant.
- Namespace creation limits: the tenant can cap how many namespaces it holds, which is set by the platform team.
- Ownership changes: adding or removing owners is a platform team action, so access to the tenant does not drift.
- Identity dependency: owner entries must match the identities your cluster authenticates, so group naming should be settled with your identity provider first.
Confirm the exact Tenant field names, owner syntax and namespace quota keys against the Capsule release you plan to run, because these have changed between versions.
Capsule applies resource quotas at the tenant level, so the total consumption of all namespaces in a tenant is capped together rather than namespace by namespace. The platform team sets the aggregate limits for CPU, memory, storage and object counts. Capsule then keeps those totals enforced as tenant owners add or remove namespaces. This makes the tenant the unit of capacity planning, which suits organizations that allocate a budget to each team or customer.
- Platform team configures: aggregate resource quotas on the tenant, including compute, storage and object count limits.
- Tenant owners do without a ticket: spread the tenant's quota across its namespaces and change how each namespace uses it.
- Per-namespace defaults: request and limit defaults still come from standard Kubernetes LimitRange objects, which the platform team or tenant can manage depending on the design.
- Quota scope: decide early whether storage quotas apply per storage class, because tenants often need different limits for each class.
- Visibility: tenant owners need a way to see their remaining quota, so plan a dashboard or report before handing over the tenant.
Confirm the quota key names, how Capsule reports usage, and how it interacts with your installed quota and LimitRange objects in the version you run.
Capsule can enforce rules on namespaces in a tenant, such as required labels or annotations, allowed registries and restrictions on which object types a tenant may create. The platform team defines these rules once on the tenant, and Capsule checks each namespace against them. This keeps tenant namespaces consistent for policy engines, cost tools and audit reporting, without asking each owner to remember the convention.
- Platform team configures: required and forbidden labels and annotations, allowed or blocked metadata values, and any restrictions on namespace or object types.
- Tenant owners do without a ticket: pick their own namespace names and any labels the rules leave open, and use the namespace right away once it passes the rules.
- Label design: choose keys that your monitoring, cost allocation and network policy tooling already expects, so rules and tools agree.
- Policy overlap: Pod Security Admission sets pod-level standards per namespace, and Capsule rules sit alongside it, so agree which layer owns each control.
- Rejections: plan how owners learn why a namespace or object was refused, since clear error messages reduce support load.
Confirm the exact rule field names, supported metadata constraints and how rejections are reported in your Capsule release.
Some objects need to exist in every namespace of a tenant, such as a pull secret, a network policy baseline or a shared ConfigMap. Capsule can replicate those resources into each tenant namespace from a single source, and keep the copies in step when the source changes. The platform team owns the source object, so tenant owners receive the same baseline without copying it by hand. Replication is useful for baseline controls, but it also means a change to the source reaches every namespace in the tenant, so review changes carefully.
- Platform team configures: the source resources to replicate, the tenant or namespace selection they apply to, and who may change the sources.
- Tenant owners do without a ticket: consume replicated resources in their namespaces, but cannot edit the source copies that Capsule manages.
- Secret handling: replicated Secrets are still stored in etcd, so encryption at rest and tight RBAC on Secret list and watch access still apply.
- Change control: a source change propagates to all tenants that receive it, so route source edits through your normal review process.
- Cleanup: decide what happens to replicated copies when a namespace or tenant is removed.
Confirm the replication resource definition, the supported object kinds and the update and deletion behavior in your Capsule version before relying on it for secrets.
Namespace isolation on its own does not stop a tenant from listing cluster-scoped objects, such as namespaces belonging to other tenants, or from seeing items they are not meant to see. capsule-proxy is a reverse proxy placed in front of the Kubernetes API server. It filters responses so that a tenant owner sees only the namespaces and objects that belong to their tenant. Tenant users connect through the proxy, while platform administrators keep direct API access. Because the proxy sits in the request path, plan its availability and how kubeconfig files point to it.
- Platform team configures: the proxy deployment, its route to the API server, the TLS setup and the kubeconfig distribution that sends tenant users through it.
- Tenant owners do without a ticket: run
kubectlagainst their tenant and see only their namespaces and related cluster-scoped objects they are allowed to list. - Direct access: keep a clear rule for who may bypass the proxy, usually only platform administrators and break-glass accounts.
- Availability: the proxy becomes a dependency for tenant access, so run it with redundancy and monitor it.
- Authentication: the proxy relies on the identities your API server already authenticates, so it complements rather than replaces your login design.
Confirm the proxy deployment options, supported Kubernetes versions and filtering behavior for your Capsule release before rollout.
Capsule configuration options and when each fits
This table compares the main tenant-level settings in Capsule, the team need each one serves and the trade-off it adds. Read each row as a question: what does the platform team need to control, and what does that control cost in operational complexity. Option names change between Capsule releases, so confirm every name against the Capsule documentation for your version before you write policy.
| Setting | Team need it serves | Trade-off to plan for |
|---|---|---|
| Tenant owner definition | Name the users or groups who administer a tenant and create namespaces inside it | Owner identities must come from your identity provider; unclear ownership makes access reviews and offboarding harder |
| Namespace quota and limits | Stop one tenant from consuming the shared cluster's CPU, memory, storage or object counts | Quotas that are too tight block legitimate scale-up; set them from measured usage and revisit them as tenants grow |
| Allowed namespace metadata | Let tenants label or annotate namespaces only with approved keys, so cost, owner and data-class tags stay consistent | Every required label becomes a rule that teams must learn; missing labels cause namespace creation to fail |
| Node selectors per tenant | Pin a tenant's workloads to dedicated or hardware-specific nodes, such as regulated or GPU pools | Dedicated nodes reduce noisy-neighbor risk but lower bin-packing efficiency and raise idle capacity cost |
| Ingress class restrictions | Limit which ingress controllers and hostnames a tenant may use, keeping routing under platform control | Overly strict hostname rules cause friction with application teams; confirm how wildcard hosts are handled in your version |
| Storage class restrictions | Control which storage tiers and reclaim policies a tenant can request, for example encrypted or backed-up volumes only | Restricting classes pushes teams to ask the platform team for exceptions; document the approval path before rollout |
| Replicated resources | Copy shared objects such as network policies, pull secrets or limit ranges into every tenant namespace automatically | Replicas can drift or be overwritten by tenant owners; confirm update and deletion behavior in the Capsule docs |
| Global resources | Define cluster-wide objects tied to a tenant, so tenants can use them without receiving broader cluster permissions | Shared objects widen the blast radius of a bad change; restrict who can edit the source objects |
Setting up Capsule tenants on a Kubernetes cluster
This sequence takes a self-managed cluster from a version check to a working Capsule setup, where a tenant owner can create namespaces within policy and see only their own namespaces through capsule-proxy. Each step ends with a check that confirms the control is working before the next one starts.
Confirm cluster version and install method
The platform engineer records the Kubernetes minor version, the distribution or installer used (for example kubeadm, RKE2 or another method from your installation design) and the admission and authentication settings already in place. Confirm the version is one the project still maintains by checking the Kubernetes releases page, and confirm the Capsule release you plan to install supports that version in its own documentation. The step is done when this record is written down and reviewed by the team that owns the cluster.
Install Capsule with Helm or manifests
The platform engineer installs the Capsule controller into its own namespace, using the Helm chart or the release manifests that match the cluster version, and pins the chart version so upgrades are deliberate. Review the admission webhook configuration Capsule creates, because it sits in the request path for every namespace operation. The step is done when the Capsule pods are running, the webhooks are registered, and a test namespace created without a tenant behaves as your design expects.
Define the tenant owner identity
The identity team maps the tenant owner to an identity from the access design, either an OIDC group claim from your identity provider or a certificate group for clusters without OIDC. The Capsule Tenant owner field then refers to that user or group name exactly as the API server sees it. Test authentication with a real account, not an administrator, and confirm the username and groups that appear in the token or certificate match the Tenant spec. The step is done when the test owner account authenticates and its groups are visible to the cluster.
Create the first Tenant
The platform engineer creates a Tenant resource that names the owner and sets the initial policy: allowed namespace name patterns, resource quotas, limit ranges, network and storage rules, and any Pod Security Admission labels the tenant must carry. Keep the first tenant small and reviewable, and record each rule against the requirement it serves. The step is done when the Tenant object is accepted by the API server and reads back with the intended owner and rules.
Verify owner self-service and policy enforcement
As the tenant owner, the tester creates namespaces that follow the policy and confirms they appear under the tenant. Then the tester submits out-of-policy requests: a namespace outside the allowed name pattern, resource requests above the quota, and a workload that breaks a Pod Security rule. Each out-of-policy request should be rejected with a clear error, and the rejection should appear in the cluster's audit or event records. The step is done when every intended allow and every intended block is observed and documented.
Deploy capsule-proxy for scoped listing
The platform engineer deploys capsule-proxy in front of the API server and points the tenant owner's kubeconfig at it, so listing namespaces and other resources returns only the tenant's own objects. Confirm the proxy is exposed on a route the owner can reach, and check how your ingress or load balancer handles TLS and client credentials. Cluster administrators should keep a direct path to the API server for break-glass access. The step is done when the owner's list commands show only their namespaces and an attempt to read another tenant's namespace is refused.
Record the tenant configuration and review access
The platform team stores the Capsule Helm values, the Tenant manifests and the capsule-proxy configuration in version control, and writes down who approves changes to tenant quotas and rules. Schedule a review of tenant owners and their group membership against the access design, because owner changes take effect through identity, not through the tenant object. Ask your Capsule support provider or internal owners to confirm how upgrades will be tested against the verification steps above. The step is done when the configuration is versioned, the approval path is named, and the verification checks can be repeated after each change.
Security risks in Capsule tenancy to design out
A Capsule tenancy shares one API server, one etcd and one set of nodes across tenants, so a weakness in any shared layer reaches every tenant. The cards below cover the risks we see most often when teams move from a single-team cluster to a multi-tenant one. Each one has a design decision and a check you can run before tenants arrive.
Tenant owner privilege escalation
Tenant owners get rights inside their own tenant, but broad ClusterRole bindings, wildcard verbs and permissions on cluster-scoped objects can let them reach past it. Capsule enforces tenant boundaries, so any extra grant you add outside its model can undo them. Review every binding that names a tenant owner group, and confirm that no tenant can create or modify cluster-scoped resources such as CustomResourceDefinitions, admission configuration or other tenants' namespaces. Test this by impersonating a tenant owner and attempting the actions you would expect to be blocked.
Kubernetes authentication docsNamespace boundaries do not stop network traffic
A namespace separates object names and RBAC scope, but pods in different tenant namespaces can still reach each other by default unless NetworkPolicy objects restrict them. Without a default-deny policy in each tenant namespace, a compromised workload can probe other tenants and cluster services. Confirm which CNI plugin is installed and that it enforces NetworkPolicy, then decide which ingress and egress paths each tenant needs. Capsule can help replicate policy objects into every tenant namespace, so check that the replicated policies match your design.
Secrets readable across tenants
Kubernetes stores Secrets unencrypted in etcd by default, so anyone who can read the etcd data directory or a snapshot can read every tenant's credentials. Encryption at rest must be configured on the API server, and list and watch access on Secrets should be limited to the workloads and identities that need it. Broad list permissions let a tenant read other tenants' Secrets through a single request. Verify encryption on a test cluster, then test that a tenant owner cannot list Secrets outside their namespaces. For external stores, the Secrets Store CSI Driver is the documented alternative.
Pod Security Standards left unenforced
Pod Security Standards are applied per namespace through the built-in Pod Security Admission controller, so a tenant namespace with no label runs without the restrictions you intended. A tenant can create a new namespace, or a privileged pod, unless the rules are enforced where tenants can reach them. Decide which level, Baseline or Restricted, each tenant class must meet, and set the enforce label in the namespace template that Capsule applies. Check with a test pod that requests host networking or privileged mode and confirm it is rejected.
Pod Security Standards docsTrust in the capsule-proxy access path
capsule-proxy sits between users and the API server to show each tenant only its own namespaces when they list resources. Because it sees and forwards requests on behalf of many users, a misconfiguration or a flaw in how it authenticates and forwards identity can expose resources across tenants. Review how clients reach the proxy, which credentials it uses upstream, whether direct API server access is still open to tenants, and who can change its configuration. Treat the proxy as a privileged component in your access review and test cross-tenant listing after every upgrade.
Running Capsule after go-live: upgrades, onboarding and audit evidence
Capsule needs the same disciplined upgrade habit as the cluster it runs on, and the order matters. Kubernetes publishes a version skew policy that requires kube-apiserver to be upgraded one minor version at a time, before kube-controller-manager, kube-scheduler and kubelets, and kubelets may be up to three minor versions older than kube-apiserver. Every cluster upgrade therefore has to be planned as a sequence of single-minor steps, and each step needs a matching Capsule release that supports the Kubernetes version you are moving to. Check the Kubernetes support window on the Kubernetes releases page before you schedule work, because the three most recent minor releases are the ones the project maintains. Confirm the Capsule compatibility matrix with the project for each target version rather than assuming the latest Capsule works on your current API server.
Treat tenant onboarding and offboarding as code. Keep each Tenant resource, its owner subjects, quota and rule settings, and any replicated resources in Git, so that a request to create or retire a tenant produces a reviewable change instead of a series of ad hoc commands. Offboarding deserves equal attention: confirm that deleting a tenant also removes the namespaces, bindings and replicated objects you expect, and that any data in persistent volumes is handled under your retention policy first. On a fixed schedule, review tenant owner bindings, remove departed owners, and compare each tenant's quota and limit settings against current usage. Quota drift is common when teams grow, and a review that only looks at who has access will miss it.
Compliance requests usually ask for proof of isolation and access review, not for a description of how Capsule works. Build that evidence on a schedule: export the Tenant definitions and their rules from Git history, capture the RBAC bindings that grant access to each tenant, record the results of your periodic owner and quota reviews with a named reviewer, and keep Kubernetes audit logs covering changes to tenants and role bindings. Pair this with network policy and Pod Security Admission settings for each tenant namespace so the evidence covers more than one control. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors decide whether the evidence is sufficient. Ask your assessor early which artifacts they expect and how far back they want the records to go.
Questions buyers ask about Capsule multi-tenancy
Does Capsule cost anything to license?
Capsule is open source, so there is no license fee to pay. The cost is the engineering effort to design tenant boundaries, build the policy objects, test them and run them afterward. That work is paid for as internal staff time, a partner's fixed-scope engagement or an ongoing retainer. Ask any quote to separate one-time items, such as design, build and testing, from recurring items, such as upgrades, policy reviews and support. The main cost drivers are the number of tenants, how many isolation rules each tenant needs and how much your platform already has in place for identity, quotas and network policy.
How long does a first Capsule tenant rollout take?
The duration depends on the scope you agree, not on a fixed number. A first rollout usually moves through tenant model design, identity and owner mapping, Capsule installation, per-tenant quota and rule definition, testing that tenants cannot reach each other's resources, and handover. The biggest drivers are how many teams or customers need tenants, whether identity already maps groups to roles, how much policy your compliance team wants to review, and how many existing namespaces must be reorganized. Ask for a timeline tied to a written scope with named milestones.
What does the work need from our team?
You need people who own the decisions and people who own the environment. Expect to supply a platform owner who can approve tenant boundaries, an identity contact who can confirm how groups reach the cluster, and an engineer with administrative access to the clusters and their Git or deployment pipelines. Security or compliance reviewers should be available to check isolation rules and evidence. Confirm early which of these roles already exist in your organization, because gaps there often set the pace more than the technical work does.
Can an in-house platform team set up Capsule alone?
Often yes, if the team already runs Kubernetes in production and understands RBAC, admission control and namespace lifecycle. The work is well bounded, but it is not trivial: tenant owners, self-service namespace creation, replicated resources and scoped listing all interact with RBAC, so mistakes can expose resources across tenants. The risk is less the first install than the long tail of rules, upgrades and reviews after go-live. Ask whether the team has time for testing and documentation, and whether anyone besides the builder can run and audit the setup.
When is it worth bringing in a partner for Capsule?
A partner is worth considering when the tenancy model affects several teams or customers, when auditors will review isolation evidence, or when your staff cannot take on design, build, testing and handover at the same time as their regular work. DeployOpen plans, implements, hardens and documents self-hosted platforms in your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. A partner does not replace your ownership of tenant decisions, and DeployOpen does not issue audit reports or certifications.
How do we verify that tenants are really isolated?
Verify isolation with tests, not with the configuration alone. Build test cases that try to list, read and modify another tenant's namespaces, secrets and quotas using each tenant owner's credentials, and check that proxy-based listing returns only the owner's objects. Add checks for replicated resources and for the rules that block tenants from creating namespaces outside their scope. Keep the results as evidence, and rerun them after each Kubernetes upgrade, because the version skew policy requires upgrades one minor version at a time.
Does Capsule replace Pod Security Admission or network policies?
No. Capsule groups namespaces into tenants and applies tenant-level rules, but Pod Security Admission still enforces the Pod Security Standards per namespace, and network policies still control traffic. Plan these controls together so each tenant gets the Privileged, Baseline or Restricted level its workloads need, and confirm how Capsule rules interact with your existing admission setup. Treat this as a design question to settle before build, because overlapping controls can block legitimate deployments if they are configured in conflict.
What a DeployOpen Capsule engagement includes
A DeployOpen Capsule engagement is agreed as a fixed scope with written deliverables and timelines before work starts. The scope usually follows the sequence in which tenancy decisions are made: tenant model design first, then installation on your cluster, owner identity integration, policy and quota design, capsule-proxy setup, and verification with handover documentation. Each of these stages produces something your team keeps, including the tenant map, the Capsule configuration as code, the owner group mappings and the test results. Optional retainer support can cover later changes such as onboarding new tenants, upgrading Capsule alongside your Kubernetes minor versions, and reviewing tenant policies as teams change.
The design stage is where most of the scope is decided. The engagement should record which tenants exist, who owns each one, which namespace-creation rules apply, which quota and limit settings each tenant gets, and which resources are replicated into every tenant namespace. Owner identity is part of the same discussion, because the group claims that map people to tenant ownership must come from your identity provider, and the mapping depends on how your SSO is already configured. Ask the partner to show which decisions are in scope, which are your responsibility, and which depend on work described in sibling topics such as RBAC design or the chosen login path.
DeployOpen does not publish a price list. A quote follows from the written scope, so the fastest way to compare options is to ask each provider for the same list of tenants, identity sources, clusters, policy requirements and handover artifacts. When requesting a quote, confirm which items are one-time work and which recur, such as retainer support, upgrades and periodic policy review. Also confirm who performs cluster access, change windows and testing in your environment, since those factors often move effort more than the Capsule configuration itself.
How DeployOpen scopes, delivers and supports Capsule tenancy
DeployOpen plans and deploys Capsule inside your own Kubernetes clusters, so tenant boundaries, quotas and self-service rules are designed around how your teams or customers share a cluster. Each engagement starts from a written scope and ends with documentation and a handover your platform team can run without us.
How we scope
- Map tenants, owners and the namespace rules each tenant may control before any Tenant resource is written
- Agree in writing which quotas, allowed registries, ingress classes and network rules apply per tenant
- Define how identity groups from your SSO map to tenant owners, and which proxy-scoped views each group gets
- Confirm which Kubernetes version and distribution the cluster runs, and which Capsule release is supported on it
How we build
- Install Capsule and capsule-proxy in a non-production cluster and configure tenants against the agreed model
- Test that tenant owners cannot create namespaces outside their limits or change cluster-wide settings
- Validate replicated resources, such as shared network policies or secrets, against each tenant's expected copies
- Run negative tests from a tenant identity to confirm cross-tenant listing and access are blocked
How we hand over
- Deliver tenant definitions, quota and rule catalogs, and GitOps-ready manifests for your repository
- Document the onboarding steps for a new tenant, including owner assignment and quota requests
- Record the test cases, results and any accepted gaps, so your security or compliance team can review them
- Run a walkthrough with platform engineers covering upgrades, rule changes and troubleshooting
How we support
- Offer ongoing support, Capsule upgrades and continuous testing of tenant boundaries as a retainer
- Review tenant rules when Kubernetes minor versions change, using the version skew guidance before upgrading
- Retest after rule changes or new tenants that touch shared resources or proxy access
- Confirm support terms, response expectations and upgrade scope in the written agreement before work starts

