Skip to content

Deprovision a Tenant#

In order to deprovision a tenant, you will need to take these steps:

  • Confirm the tenant is not in use
  • Remove the tenant from landlord
  • Clean up namespace
  • Archive the gitlab repository
  • Communicate

Confirm the tenant is not in use#

Communicate with the tenant owner(s) to confirm the tenant is no longer needed.

Remove the tenant from landlord#

Edit the Landlord repository to remove the tenant from all tenant configurtions.

Note: A tenant may be provisionined in multiple clusters. So you will need to check each of the tenant configurations for the tenant.

Note also: If the department has no other tenants in the cluster, also remove any nodePools defined for the department.

Clean up namespace#

Once the change to the landlord repo is merged, flux should clean up all resources deployed by the tenant. You can confirm the namespace has been cleaned up by using kubectl get ns.

Sometimes, flux will get stuck cleaning up due to finalizers. If this happens, escalate it
to the platform team by assigning tickets to the NIS-Platform assignment group in ServiceNow.

Archive the gitlab repository#

Finally, archive the Gitlab repo. (If you do not have permission to do this, request it from the platform team via Slack.)

  • Browse to the gitlab repository
  • Click on Settings -> General
  • Expand "Advanced"
  • Click on "Archive Project"
  • Click on "Archive Project" to confirm

Communicate#

Inform the tenant owner(s) that the tenant has been deprovisioned and the repository archived.