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/access-fleet-kubernetes-api.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,28 +2,36 @@
2
2
title: "Access the Kubernetes API of the Fleet resource"
3
3
description: Learn how to access the Kubernetes API of the Fleet resource.
4
4
ms.topic: how-to
5
-
ms.date: 03/18/2024
5
+
ms.date: 03/20/2024
6
6
author: shashankbarsin
7
7
ms.author: shasb
8
8
ms.service: kubernetes-fleet
9
-
ms.custom:
10
-
- ignite-2023
11
9
---
12
10
13
11
# Access the Kubernetes API of the Fleet resource with Azure Kubernetes Fleet Manager
14
12
15
-
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 object propagation. In this article, you learn how to access the Kubernetes API of the Fleet resource.
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 with deployed workloads. If you don't have this resource, follow [Quickstart: Create a Fleet resource and join member clusters](quickstart-create-fleet-and-members.md).
22
-
* The identity (user or service principal) you're using needs to have the Microsoft.ContainerService/fleets/listCredentials/action and Microsoft.ContainerService/managedClusters/listClusterUserCredential/action permissions on the Fleet and AKS resource types.
19
+
* 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).
20
+
* The identity (user or service principal) you're using needs to have the Microsoft.ContainerService/managedClusters/listClusterUserCredential/action permissions on the Fleet and AKS resource types.
23
21
24
22
## Access the Kubernetes API of the Fleet resource cluster
25
23
26
-
1. Get the kubeconfig file of the hub cluster Fleet resource using the [`az fleet get-credentials`][az-fleet-get-credentials] command.
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.
25
+
26
+
```azurecli-interactive
27
+
export SUBSCRIPTION_ID=<subscription-id>
28
+
az account set --subscription ${SUBSCRIPTION_ID}
29
+
30
+
export GROUP=<resource-group-name>
31
+
export FLEET=<fleet-name>
32
+
```
33
+
34
+
2. Get the kubeconfig file of the hub cluster Fleet resource using the [`az fleet get-credentials`][az-fleet-get-credentials] command.
27
35
28
36
```azurecli-interactive
29
37
az fleet get-credentials --resource-group ${GROUP} --name ${FLEET}
@@ -35,13 +43,13 @@ If your Azure Kubernetes Fleet Manager resource was created with the hub cluster
35
43
Merged "hub" as current context in /home/fleet/.kube/config
36
44
```
37
45
38
-
2. Set the following environment variable for the `id` of the hub cluster Fleet resource:
46
+
3. Set the following environment variable for the `id` of the hub cluster Fleet resource:
Copy file name to clipboardExpand all lines: articles/kubernetes-fleet/l4-load-balancing.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,12 @@
2
2
title: "How to set up multi-cluster Layer 4 load balancing across Azure Kubernetes Fleet Manager member clusters (preview)"
3
3
description: Learn how to use Azure Kubernetes Fleet Manager to set up multi-cluster Layer 4 load balancing across workloads deployed on multiple member clusters.
4
4
ms.topic: how-to
5
-
ms.date: 09/09/2022
5
+
ms.date: 03/20/2024
6
6
author: shashankbarsin
7
7
ms.author: shasb
8
8
ms.service: kubernetes-fleet
9
9
ms.custom:
10
10
- devx-track-azurecli
11
-
- ignite-2023
12
11
---
13
12
14
13
# Set up multi-cluster layer 4 load balancing across Azure Kubernetes Fleet Manager member clusters (preview)
@@ -25,13 +24,14 @@ You can follow this document to set up layer 4 load balancing for such multi-clu
25
24
26
25
* Read the [conceptual overview of this feature](./concepts-l4-load-balancing.md), which provides an explanation of `ServiceExport` and `MultiClusterService` objects referenced in this document.
27
26
28
-
* You must have a fleet resource with member clusters with deployed workload. If you don't have this resource, follow [Quickstart: Create a Fleet resource and join member clusters](quickstart-create-fleet-and-members.md) and [Propagate Kubernetes configurations from a Fleet resource to member clusters](resource-propagation.md).
29
-
30
-
* These target clusters should be using [Azure CNI (Container Networking Interface) networking](../aks/configure-azure-cni.md).
27
+
* 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).
31
28
32
29
* The target Azure Kubernetes Service (AKS) clusters on which the workloads are deployed need to be present on either the same [virtual network](../virtual-network/virtual-networks-overview.md) or on [peered virtual networks](../virtual-network/virtual-network-peering-overview.md).
33
30
34
-
* These target clusters have to be [added as member clusters to the Fleet resource](./quickstart-create-fleet-and-members.md#join-member-clusters).
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
+
* These target clusters should be using [Azure CNI (Container Networking Interface) networking](../aks/configure-azure-cni.md).
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).
35
35
36
36
* Set the following environment variables and obtain the kubeconfigs for the fleet and all member clusters:
37
37
@@ -45,11 +45,9 @@ You can follow this document to set up layer 4 load balancing for such multi-clu
45
45
az aks get-credentials --resource-group ${GROUP} --name ${MEMBER_CLUSTER_1} --file aks-member-1
46
46
```
47
47
48
-
* If the Azure Kubernetes Fleet Manager resource was created with the hub cluster enabled, then it can be used to centrally control scenarios like Kubernetes object propagation. To access the Kubernetes API of the Fleet resource cluster, follow the steps in the [Access the Kubernetes API of the Fleet resource cluster with Azure Kubernetes Fleet Manager](access-fleet-kubernetes-api.md) article.
49
-
50
48
[!INCLUDE [preview features note](~/articles/reusable-content/azure-cli/azure-cli-prepare-your-environment-no-header.md)]
51
49
52
-
## Deploy a sample workload to demo clusters
50
+
## Deploy a workload across member clusters of the Fleet resource
description: Learn how to use Azure Kubernetes Fleet Manager to intelligently place workloads across multiple clusters.
4
4
ms.topic: how-to
5
-
ms.date: 10/31/2023
5
+
ms.date: 03/20/2024
6
6
author: phealy
7
7
ms.author: pahealy
8
8
ms.service: kubernetes-fleet
@@ -27,9 +27,9 @@ Fleet workload placement can deploy any Kubernetes objects to clusters In order
27
27
## Prerequisites
28
28
29
29
- Read the [conceptual overview of this feature](./concepts-resource-propagation.md), which provides an explanation of `MemberCluster` and `ClusterResourcePlacement` referenced in this document.
30
-
-A Kubernetes Fleet with a hub cluster and member clusters (see the [quickstart](quickstart-create-fleet-and-members.md) for provisioning instructions).
30
+
-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).
31
31
- Member clusters must be labeled appropriately in the hub cluster to match the desired selection criteria. Example labels could include region, environment, team, availability zones, node availability, or anything else desired.
32
-
-If the Azure Kubernetes Fleet Manager resource was created with the hub cluster enabled, then it can be used to centrally control scenarios like Kubernetes object propagation. To access the Kubernetes API of the Fleet resource cluster, follow the steps in the [Access the Kubernetes API of the Fleet resource cluster with Azure Kubernetes Fleet Manager](access-fleet-kubernetes-api.md) article.
32
+
-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).
33
33
34
34
## Resource placement with `ClusterResourcePlacement` resources
0 commit comments