You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/kubernetes-fleet/l4-load-balancing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ You can follow this document to set up layer 4 load balancing for such multi-clu
31
31
* These target clusters have to be [added as member clusters to the Fleet resource](./quickstart-create-fleet-and-members.md#join-member-clusters).
32
32
* These target clusters should be using [Azure CNI (Container Networking Interface) networking](../aks/configure-azure-cni.md).
33
33
34
-
* You must gain access to the Kubernetes API of the hub cluster by following the steps in [Access the Kubernetes API of the Fleet resource](./access-fleet-kubernetes-api.md).
34
+
* You must gain access to the Kubernetes API of the hub cluster by following the steps in [Access the Kubernetes API of the Fleet resource](./quickstart-access-fleet-kubernetes-api.md).
35
35
36
36
* Set the following environment variables and obtain the kubeconfigs for the fleet and all member clusters:
Copy file name to clipboardExpand all lines: articles/kubernetes-fleet/quickstart-access-fleet-kubernetes-api.md
+22-19Lines changed: 22 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,37 +1,41 @@
1
1
---
2
-
title: "Access the Kubernetes API of the Fleet resource"
3
-
description: Learn how to access the Kubernetes API of the Fleet resource.
4
-
ms.topic: how-to
5
-
ms.date: 03/20/2024
6
-
author: shashankbarsin
7
-
ms.author: shasb
2
+
title: "Quickstart: Access the Kubernetes API of the Fleet resource"
3
+
description: Learn how to access the Kubernetes API of the Fleet resource with Azure Kubernetes Fleet Manager.
4
+
ms.topic: quickstart
5
+
ms.date: 04/01/2024
6
+
author: schaffererin
7
+
ms.author: schaffererin
8
8
ms.service: kubernetes-fleet
9
9
---
10
10
11
-
# Access the Kubernetes API of the Fleet resource with Azure Kubernetes Fleet Manager
11
+
# Quickstart: Access the Kubernetes API of the Fleet resource
12
12
13
13
If your Azure Kubernetes Fleet Manager resource was created with the hub cluster enabled, then it can be used to centrally control scenarios like Kubernetes resource propagation. In this article, you learn how to access the Kubernetes API of the hub cluster managed by the Fleet resource.
* You must have a Fleet resource with a hub cluster and member clusters. If you don't have this resource, follow [Quickstart: Create a Fleet resource and join member clusters](quickstart-create-fleet-and-members.md).
19
+
* You need a Fleet resource with a hub cluster and member clusters. If you don't have one, see [Create an Azure Kubernetes Fleet Manager resource and join member clusters using Azure CLI](quickstart-create-fleet-and-members.md).
20
20
* The identity (user or service principal) you're using needs to have the Microsoft.ContainerService/fleets/listCredentials/action on the Fleet resource.
21
21
22
-
## Access the Kubernetes API of the Fleet resource cluster
22
+
## Access the Kubernetes API of the Fleet resource
23
23
24
-
1. Set the following environment variables for your subscription ID, resource group, and Fleet resource, and set the default Azure subscription to use using the [`az account set`][az-account-set] command.
24
+
1. Set the following environment variables for your subscription ID, resource group, and Fleet resource:
25
25
26
26
```azurecli-interactive
27
27
export SUBSCRIPTION_ID=<subscription-id>
28
-
az account set --subscription ${SUBSCRIPTION_ID}
29
-
30
28
export GROUP=<resource-group-name>
31
29
export FLEET=<fleet-name>
32
30
```
33
31
34
-
2. Get the kubeconfig file of the hub cluster Fleet resource using the [`az fleet get-credentials`][az-fleet-get-credentials] command.
32
+
2. Set the default Azure subscription to use using the [`az account set`][az-account-set] command.
33
+
34
+
```azurecli-interactive
35
+
az account set --subscription ${SUBSCRIPTION_ID}
36
+
```
37
+
38
+
3. Get the kubeconfig file of the hub cluster Fleet resource using the [`az fleet get-credentials`][az-fleet-get-credentials] command.
35
39
36
40
```azurecli-interactive
37
41
az fleet get-credentials --resource-group ${GROUP} --name ${FLEET}
@@ -43,13 +47,13 @@ If your Azure Kubernetes Fleet Manager resource was created with the hub cluster
43
47
Merged "hub" as current context in /home/fleet/.kube/config
44
48
```
45
49
46
-
3. Set the following environment variable for the `id` of the hub cluster Fleet resource:
50
+
4. Set the following environment variable for the `id` of the hub cluster Fleet resource:
* Read the [conceptual overview of this feature](./concepts-fleet.md), which provides an explanation of fleets and member clusters referenced in this document.
20
22
* An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
21
23
* An identity (user or service principal) with the following permissions on the Fleet and AKS resource types for completing the steps listed in this quickstart:
@@ -60,6 +62,4 @@ Get started with Azure Kubernetes Fleet Manager (Fleet) by using the Azure porta
60
62
61
63
## Next steps
62
64
63
-
*[Orchestrate updates across multiple member clusters](./update-orchestration.md).
64
-
*[Set up Kubernetes resource propagation from hub cluster to member clusters](./resource-propagation.md).
65
-
*[Set up multi-cluster layer-4 load balancing](./l4-load-balancing.md).
65
+
*[Access the Kubernetes API of the Fleet resource](./quickstart-access-fleet-kubernetes-api.md).
* Read the [conceptual overview of this feature](./concepts-fleet.md), which provides an explanation of fleets and member clusters referenced in this document.
20
22
* An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
21
23
* An identity (user or service principal) which can be used to [log in to Azure CLI](/cli/azure/authenticate-azure-cli). This identity needs to have the following permissions on the Fleet and AKS resource types for completing the steps listed in this quickstart:
@@ -150,11 +152,7 @@ Fleet currently supports joining existing AKS clusters as member clusters.
150
152
151
153
```azurecli-interactive
152
154
# Join the first member cluster
153
-
az fleet member create \
154
-
--resource-group ${GROUP} \
155
-
--fleet-name ${FLEET} \
156
-
--name ${MEMBER_NAME_1} \
157
-
--member-cluster-id ${MEMBER_CLUSTER_ID_1}
155
+
az fleet member create --resource-group ${GROUP} --fleet-name ${FLEET} --name ${MEMBER_NAME_1} --member-cluster-id ${MEMBER_CLUSTER_ID_1}
158
156
```
159
157
160
158
Your output should look similar to the following example output:
@@ -197,9 +195,7 @@ Fleet currently supports joining existing AKS clusters as member clusters.
197
195
198
196
## Next steps
199
197
200
-
* [Orchestrate updates across multiple member clusters](./update-orchestration.md).
201
-
* [Set up Kubernetes resource propagation from hub cluster to member clusters](./resource-propagation.md).
202
-
* [Set up multi-cluster layer-4 load balancing](./l4-load-balancing.md).
198
+
* [Access the Kubernetes API of the Fleet resource](./quickstart-access-fleet-kubernetes-api.md).
0 commit comments