Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Manage NFS for tenants

Give tenants NFS access without a client installation. Enable NFS multi-tenancy, assign tenants to interface groups, and understand which NFS features are available to a tenant.

Overview

NFS multi-tenancy gives each tenant its own NFS service: isolated client groups, isolated exports, and dedicated floating IP addresses reached through the tenant's network space. Tenants gain filesystem access without installing any client software.

Tenant NFS access works differently from tenant POSIX access, and the difference matters before you provision anything:

Access path
How a tenant is isolated

POSIX (wekafs)

Authentication. Users obtain a mount token through weka user login --tenant, and mounting is limited to stateless clients.

NFS

Network topology. The tenant's floating IPs live in its network space and VLAN. Connections use sec=sys and carry no token.

Both paths keep tenants separated from each other, but they rely on different mechanisms. An NFS export is reachable by anything that can route to the tenant's floating IPs, so the network space boundary is the security boundary. Size and segment the network space accordingly.

All tasks in this topic require the ClusterAdmin role unless stated otherwise.

Related topics

Multi-tenancy cluster-level administration

Manage the NFS protocol

Enable NFS multi-tenancy

NFS multi-tenancy is disabled by default and applies to the whole cluster. Enabling it changes how every NFS object is scoped, so review the prerequisites before you switch it on.

Before you begin

Enabling fails if any of the following exist in the cluster:

  • The Kubernetes NFS deployment mode is in use. Multi-tenancy and that deployment mode are mutually exclusive.

  • An NFS export on a tenant filesystem uses manage_gids.

  • A client group belonging to a tenant has a name-based (DNS) rule.

Resolve these first. The error lists every conflicting feature type at once, so a single attempt tells you everything you need to fix:

In the GUI only, one further condition applies: the Multi-Tenancy toggle is disabled while LDAP or Kerberos authentication is configured, with the tooltip "Multi-tenancy cannot be enabled while LDAP or Kerberos authentication is configured. Reset them first." The CLI has no such restriction. With the CLI, Kerberos and LDAP become available only in the root organization once multi-tenancy is enabled.

GUI procedure

  1. From the menu, select Manage > Protocols.

  2. Select NFS, then open the Settings tab.

  3. In the Global settings section, select Update.

  4. Set Multi-Tenancy to on.

  5. Select Submit, then select Confirm in the Restart NFS Containers dialog. The restart temporarily interrupts IO for connected NFS clients.

CLI alternative

The CLI does not restart the containers. On success, it prints Restart of NFS-W containers needed to apply changes. Restart the containers as a separate step.

To confirm the current state:

Mutating NFS commands wait for the configuration to propagate to every NFS server before returning. This normally takes a few seconds, with a 55-second timeout. If the timeout expires, the command fails with an error naming the servers that did not confirm.

Assign a tenant to an interface group

A tenant's floating IP addresses are defined in the tenant's own network space, through --fip-range. Assigning the tenant to an interface group causes those floating IPs to be served by that interface group's servers, which is what makes the tenant's exports reachable.

Before you begin

  • The tenant must already exist and have at least one network space assigned. See Create a tenant environment.

  • The tenant's network space must define a floating IP range through --fip-range, which is accepted on both weka cluster network-space add and update.

  • A tenant network space supports a maximum of 8 floating IP addresses.

The root organization is never assigned to an interface group. It uses the interface group's floating IPs directly. Only tenants require an explicit assignment.

GUI procedure

  1. From the menu, select Manage > Protocols.

  2. Select NFS, then open the Configuration tab.

  3. Select the target interface group to open its detail view.

  4. Select Add in the Name Spaces section.

    Add a tenant to an interface group
  5. Select the tenant, then select Submit.

    The Tenant list offers only tenants. The root organization appears but cannot be selected, because it uses the interface group's floating IPs directly.

    The same dialog also moves a tenant: a tenant already assigned to another interface group is moved to this one.

    Assign Tenant dialog

To remove a tenant, open the Name Spaces table on the interface group's detail view and select Remove on the tenant's row.

The Tenant column on that table shows which tenant each namespace serves.

Add the interface group's IP ranges first, then assign the tenant. In this order the group activates and serves the tenant's floating IPs immediately. A group that receives a tenant while it has no IP ranges stays inactive, and it must be recreated to accept them.

CLI alternative

List the tenants currently assigned to interface groups. Run the parent command itself, which has no list subcommand:

Assign a tenant to an interface group:

Move a tenant to a different interface group:

Remove a tenant from an interface group:

All three verbs take the same two positional arguments, interface group first and tenant second.

Inspect tenant network space assignment

Each tenant network space is hosted on a specific server. Use this command to see the current mapping, for example when diagnosing why a tenant's floating IP is unreachable:

For the failover behavior that moves a tenant's floating IPs between servers, see Scalability, load balancing, and resiliency.

Feature availability: root organization and tenants

Several NFS features remain available only in the root organization while NFS multi-tenancy is enabled. A tenant attempting to configure one receives an error naming the feature.

Feature
Root organization
Tenant

Kerberos authentication

Yes

No. Connections that use RPCSEC_GSS are rejected with AUTH_TOOWEAK.

LDAP for NFS group resolution

Yes

No

Manage GIDs

Yes

No

Name-based (DNS) client rules

Yes

No. Use IP-based rules.

ACLs

Yes

No

NFSv3 file locking (NLM)

Yes

No. NFSv4.1 locking is available.

NFS multi-tenancy cannot be enabled on clusters running the Kubernetes NFS deployment mode; the two are mutually exclusive. This is a cluster-wide constraint, not a tenant restriction: under multi-tenancy, the deployment mode is unavailable to the root organization as well. Kubernetes workloads that mount NFS exports as clients are unaffected.

Two further consequences for tenant exports:

  • An explicitly requested ACL type or Kerberos flavor is rejected with an error. A defaulted ACL type is silently set to NONE, so an export created without naming an ACL type has weaker access control than the pre-multi-tenancy default.

  • Kerberos flavors are removed from the tenant view of weka nfs global-config. A cluster administrator and a tenant administrator running the same command see different output.

Per-tenant limits

Tenants have lower NFS object limits than the root organization.

Object
Root organization
Tenant

Client groups

50

8

Client group rules

200

16

Exports (permissions)

1024

64

Floating IPs per network space

Not applicable

8

Each limit is enforced per organization at creation time. A cluster supports up to 255 network spaces, and a single tenant can own more than one, so there is no per-tenant network space quota.

The root organization's 200 floating IP addresses come from the interface group's own address pool. Tenant floating IPs are allocated from their network spaces and do not count against it.

The rule limit is counted across the whole organization, not per client group. A tenant with 8 client groups has 16 rules to distribute among them.

Remove NFS resources before deleting a tenant

Deleting a tenant is blocked while the tenant still holds NFS resources. Remove the tenant's exports and client groups, and remove the tenant from its interface group, before deleting it.

A network space cannot be edited or deleted while a tenant is attached to it.

Last updated