Managing domains

You can add more domains, as described in Configuring multitenancy. Also, you can edit domain details and quotas, as well as enable/disable and delete the existing domains. Disabling and enabling domains allows or prohibits access to domains in the self-service panel.

Limitations

  • You can set domain quotas only after deploying the compute cluster.
  • You cannot configure domain quotas for floating IP addresses, VPN connections, load balancers, Kubernetes clusters, and placements.
  • A domain cannot be deleted if it has projects.

To edit a domain name or description

Admin panel

  1. Go to the Settings > Projects and users screen.
  2. Click the ellipsis icon next to the domain, and then click Edit.
  3. Make the required changes, and then click Save.

    A description should not contain any personally identifiable information or sensitive business data.

Command-line interface

Use the following command:

vinfra domain set [--description <description>] [--name <name>] <domain>
--description <description>

Domain description

A description should not contain any personally identifiable information or sensitive business data.

--name <name>
Domain name
<domain>
Domain ID or name

For example, to add a description for the domain mydomain, run:

# vinfra domain set mydomain --description "A custom domain"

To edit domain quotas

Admin panel

  1. Go to the Settings > Projects and users screen.
  2. Click the ellipsis icon next to the domain, and then click Edit quotas.
  3. Define quotas for virtual resources that will be available inside the domain. To specify a certain value for a resource, clear the Unlimited check box next to it first.

    You can only configure domain quotas for vCPUs, RAM, and storage space.

  4. Click Save to apply your changes.

Command-line interface

Use the following command:

vinfra service compute quotas update [--cores <cores>] [--ram-size <ram>]
                                     [--storage-policy <storage_policy>]
                                     [--volumes-backups <volumes-backups-size>]
                                     <domain_id>
--cores <cores>
Number of cores
--ram-size <ram>
Amount of RAM
--storage-policy <storage_policy>
Storage policy in the format <storage_policy>:<size> (this option can be used multiple times)
--volumes-backups <volumes-backups-size>
Volume backup size
<domain_id>
Domain ID

For example, to update quotas for the domain with the ID 0ed0dac39ba14e89b7d2b8cb7d5337f7 to 30 vCPUs, 60 GiB of RAM, 1024 GiB of disk space for the default storage policy, and 200 GiB of the volume backup size, run:

# vinfra service compute quotas update --cores 30 --ram-size 60G --storage-policy default:1024G --volumes-backups 200G\
0ed0dac39ba14e89b7d2b8cb7d5337f7

You can view the updated quotas in the vinfra service compute quotas show output:

# vinfra service compute quotas show 0ed0dac39ba14e89b7d2b8cb7d5337f7
+----------------------------------------+----------+
| Field                                  | Value    |
+----------------------------------------+----------+
| compute.cores.limit                    | 30       |
| compute.ram_quota.limit                | 60.0GiB  |
| storage.storage_policies.default.limit | 1.0TiB   |
| storage.volumes_backups.limit          | 200.0GiB |
+----------------------------------------+----------+

To enable or disable a domain

Admin panel

  1. Go to the Settings > Projects and users screen.
  2. Click the ellipsis icon next to the domain, and then click Enable or Disable.

Command-line interface

Use the following command:

vinfra domain set [--enable | --disable] <domain>
--enable
Enable domain
--disable
Disable domain
<domain>
Domain ID or name

For example, to disable the domain mydomain, run:

# vinfra domain set mydomain --disable

To delete a domain

Admin panel

  1. Go to the Settings > Projects and users screen.
  2. Click the ellipsis icon next to the domain, and then click Delete.

Command-line interface

Use the following command:

vinfra domain delete <domain>
<domain>
Domain ID or name

For example, to delete the domain mydomain, run:

# vinfra domain delete mydomain