1. StreamNative Cloud
  2. Use

Work with tenants

A tenant is an administrative unit for allocating capacity and enforcing an authentication or authorization scheme. After creating a cluster, you can create one or more tenants for the organization.

Work with tenants through snctl

In this release, snctl does not support creating or managing tenants. You can create a tenant for the organization through the StreamNative Cloud Console. For details about how to create a tenant, see create tenant. You can use pulsarctl to manage tenants.

Work with tenants through StreamNative Cloud Console

This section describes how to work with tenants through the StreamNative Cloud Console.

Create a tenant

To create a tenant, follow these steps.

  1. On the left navigation pane, under Tenant/Namespace, select the current default tenant/namespace, and then click New Tenant.

  2. On the Tenants page, click New Tenant.

  3. Configure the tenant, as outlined in the following table.

    ItemDescription
    TenantsEnter a name for the tenant. A tenant name can contain any combination of lowercase letters (a-z), numbers (0-9), and hyphens (-)
    Allowed ClustersSelect an allowed cluster for the tenant.
    Admin Roles(Optional) Select one or more administrators for the tenant.
  4. Click Confirm.

Manage tenants

This section describes how to manage tenants through the StreamNative Cloud Console.

Edit tenants

To edit a tenant, follow these steps.

  1. On the left navigation pane, in the Admin section, click Tenants.

  2. Click Edit in the Action column.

  3. Select the Configuration tab where you can edit the following:

    ItemDescription
    Allowed ClustersSelect one allowed cluster for the tenant.
    Admin RolesSelect one administrator for the tenant. Or, you can click Add Role and then select the available administrators for the tenant.
  4. To add more namespaces for the tenant, click the link on the tenant name and then click New Namespace. For details about how to create a namespace, see create namespace.

Delete tenants

You cannot delete a tenant if there are resources associated with the tenant.

To delete a tenant, follow these steps.

  1. On the left navigation pane, in the Admin section, click Tenants.

  2. Click Edit in the Action column.

  3. Select the Configuration tab.

  4. Click Delete Tenant. A dialog box displays asking, Are you sure you want to delete this?

  5. Enter the tenant name and then click Confirm.

Next step

Previous
Work with cluster