Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: ✔️ Fleet Manager with hub cluster
This article shows you how to view the managed namespaces you have access to and monitor resource usage across member clusters.
Important
Azure Kubernetes Fleet Manager preview features are available on a self-service, opt-in basis. Previews are provided "as is" and "as available," and they're excluded from the service-level agreements and limited warranty. Azure Kubernetes Fleet Manager previews are partially covered by customer support on a best-effort basis. As such, these features aren't meant for production use.
Before you begin
Important
This article is intended for developers and team members who need to discover and monitor managed namespaces they have access to. If you're a platform administrator looking to create and configure managed namespaces, see Use multi-cluster managed namespaces for multi-tenancy.
You need an Azure account with an active subscription. Create an account.
You need an existing multi-cluster managed namespace. If you don't have one, see Create a multi-cluster managed namespace.
Read the overview of multi-cluster managed namespaces to understand the concept of a managed namespace.
You need Azure CLI version 2.58.0 or later installed to complete this article. To install or upgrade, see Install Azure CLI.
You need the
fleetAzure CLI extension. You can install it and update to the latest version using theaz extension addandaz extension updatecommands.# Install the extension az extension add --name fleet # Update the extension az extension update --name fleetConfirm the fleet extension version is at least 1.7.0 using the
az extension showcommand.az extension show --name fleetSet the following environment variables for your subscription ID, resource group, and Fleet:
export SUBSCRIPTION_ID=<subscription-id> export GROUP=<resource-group-name> export FLEET=<fleet-name> export FLEET_NAMESPACE_NAME=<fleet-namespace-name>Set the default Azure subscription using the
az account setcommand.az account set --subscription ${SUBSCRIPTION_ID}
View the multi-cluster managed namespaces I have access to
View the multi-cluster managed namespaces you have access to using the
az fleet namespace listcommand.az fleet namespace list --resource-group {GROUP} \ --fleet-name ${FLEET} \ -o tableYour output should resemble the following example output:
AdoptionPolicy DeletePolicy ETag Location Name ProvisioningState ResourceGroup -------------- ------------ ------------------------------------- -------- -------------------- ----------------- ------------- Always Delete "aaaaaaaa-0b0b-1c1c-2d2d-333333333333 chinanorth3 my-managed-namespace Succeeded test-rg
View a managed namespace
View a specific managed namespace using the
az fleet namespace showcommand.az fleet namespace show \ --resource-group ${GROUP} \ --fleet-name ${FLEET} \ --name ${FLEET_NAMESPACE_NAME}$ \ -o tableYour output should resemble the following example output:
AdoptionPolicy DeletePolicy ETag Location Name ProvisioningState ResourceGroup -------------- ------------ ------------------------------------- -------- -------------------- ----------------- ------------- Always Delete "aaaaaaaa-0b0b-1c1c-2d2d-333333333333 chinanorth3 my-managed-namespace Succeeded test-rg
Next steps
- Read the overview of multi-cluster managed namespaces to understand the concept of a managed namespace.
- Learn how to create and use a multi-cluster managed namespace.