Skip to content

Commit 1127947

Browse files
committed
fix tabs
1 parent d4c6dd5 commit 1127947

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

articles/azure-arc/kubernetes/quickstart-connect-cluster.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
22
title: Quickstart: Connect an existing Kubernetes cluster to Azure Arc
33
description: In this quickstart, you learn how to connect an Azure Arc-enabled Kubernetes cluster.
4-
ms.service: azure-arc
54
ms.topic: quickstart
65
ms.date: 02/16/2022
76
ms.custom: template-quickstart, mode-other, devx-track-azurecli
87
ms.devlang: azurecli
9-
keywords: "Kubernetes, Arc, Azure, cluster"
108
---
119

1210
# Quickstart: Connect an existing Kubernetes cluster to Azure Arc
@@ -41,9 +39,9 @@ For a conceptual look at connecting clusters to Azure Arc, see [Azure Arc-enable
4139
* Self-managed Kubernetes cluster using [Cluster API](https://cluster-api.sigs.k8s.io/user/quick-start.html)
4240
* If you want to connect a OpenShift cluster to Azure Arc, you need to execute the following command just once on your cluster before running `az connectedk8s connect`:
4341

44-
```
45-
oc adm policy add-scc-to-user privileged system:serviceaccount:azure-arc:azure-arc-kube-aad-proxy-sa
46-
```
42+
```
43+
oc adm policy add-scc-to-user privileged system:serviceaccount:azure-arc:azure-arc-kube-aad-proxy-sa
44+
```
4745
4846
>[!NOTE]
4947
> The cluster needs to have at least one node of operating system and architecture type `linux/amd64`. Clusters with only `linux/arm64` nodes aren't yet supported.
@@ -78,9 +76,9 @@ For a conceptual look at connecting clusters to Azure Arc, see [Azure Arc-enable
7876
* Self-managed Kubernetes cluster using [Cluster API](https://cluster-api.sigs.k8s.io/user/quick-start.html)
7977
* If you want to connect a OpenShift cluster to Azure Arc, you need to execute the following command just once on your cluster before running `New-AzConnectedKubernetes`:
8078
81-
```
82-
oc adm policy add-scc-to-user privileged system:serviceaccount:azure-arc:azure-arc-kube-aad-proxy-sa
83-
```
79+
```
80+
oc adm policy add-scc-to-user privileged system:serviceaccount:azure-arc:azure-arc-kube-aad-proxy-sa
81+
```
8482
8583
>[!NOTE]
8684
> The cluster needs to have at least one node of operating system and architecture type `linux/amd64`. Clusters with only `linux/arm64` nodes aren't yet supported.
@@ -150,6 +148,8 @@ For a conceptual look at connecting clusters to Azure Arc, see [Azure Arc-enable
150148
151149
Once registered, you should see the `RegistrationState` state for these namespaces change to `Registered`.
152150
151+
---
152+
153153
## Create a resource group
154154
155155
Run the following command:
@@ -174,13 +174,14 @@ New-AzResourceGroup -Name AzureArcTest -Location EastUS
174174
```
175175

176176
Output:
177-
<pre>
177+
178+
```
178179
ResourceGroupName : AzureArcTest
179180
Location : eastus
180181
ProvisioningState : Succeeded
181182
Tags :
182183
ResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureArcTest
183-
</pre>
184+
```
184185

185186
---
186187

@@ -251,6 +252,8 @@ Location Name Type
251252
eastus AzureArcTest1 microsoft.kubernetes/connectedclusters
252253
```
253254

255+
---
256+
254257
## Connect using an outbound proxy server
255258

256259
If your cluster is behind an outbound proxy server, requests must be routed via the outbound proxy server.
@@ -293,6 +296,8 @@ If your cluster is behind an outbound proxy server, requests must be routed via
293296
New-AzConnectedKubernetes -ClusterName <cluster-name> -ResourceGroupName <resource-group> -Location eastus -Proxy 'https://<proxy-server-ip-address>:<port>'
294297
```
295298

299+
---
300+
296301
## Verify cluster connection
297302

298303
Run the following command:
@@ -325,10 +330,12 @@ Location Name Type
325330
eastus AzureArcTest1 microsoft.kubernetes/connectedclusters
326331
```
327332

333+
---
334+
328335
> [!NOTE]
329336
> After onboarding the cluster, it takes around 5 to 10 minutes for the cluster metadata (cluster version, agent version, number of nodes, etc.) to surface on the overview page of the Azure Arc-enabled Kubernetes resource in Azure portal.
330337

331-
## 6. View Azure Arc agents for Kubernetes
338+
## View Azure Arc agents for Kubernetes
332339

333340
Azure Arc-enabled Kubernetes deploys a few agents into the `azure-arc` namespace.
334341

@@ -394,6 +401,8 @@ Remove-AzConnectedKubernetes -ClusterName AzureArcTest1 -ResourceGroupName Azure
394401
>[!NOTE]
395402
> Deleting the Azure Arc-enabled Kubernetes resource using the Azure portal removes any associated configuration resources, but *does not* remove any agents running on the cluster. Best practice is to delete the Azure Arc-enabled Kubernetes resource using `Remove-AzConnectedKubernetes` rather than deleting the resource in the Azure portal.
396403

404+
---
405+
397406
## Next steps
398407

399408
Advance to the next article to learn how to deploy configurations to your connected Kubernetes cluster using GitOps.

0 commit comments

Comments
 (0)