Tenancy at Kubernetes/OpenShift Cluster Level
This section elaborates the steps to enable Tenancy in
AKO
to map each Kubernetes/OpenShift cluster uniquely to a tenant in Avi Load Balancer
.To enable Tenancy in
AKO
, follow the steps below:- Creating a Tenant.
- From the UI, navigate to.
- ClickCreate.
- Enter theNameasbilling.
- TheNew Tenantscreen is as shown below:
- ClickSave.
- Creating Roles: Create the required roles with appropriate privileges to theAKOuser in the admin and the billing tenants. This can be created by POST to/api/role.
- Create the role .
- Create the role .
- Navigate to.The roles created are displayed as shown below:
- Assigning Tenants and Roles to users: Create users and assign tenants as required. To create users,
- Navigate to.
- ClickCreate.
- Enter theUser Informationas required. In theTenant & Rolesection, clickAddand select theRoles.
- Under Individual Tenants, clickAddand select theTenant.
- ClickSave.
In
AKO
, configure the following:- Set theControllerSettings.tenantNameto the tenant created in the earlier steps.
- Theavicredentials.usernameandavicredentials.passwordto the user credentials created above.
In the NodePort mode of
AKO
(when L7Settings.serviceType
is set to NodePort
), VRFContext permissions are not required in the admin tenant in the Avi Load Balancer Controller
.