Skip to content

Commit 12831c5

Browse files
Merge pull request #224202 from JnHs/jh-arck8-ccps
fix steps and refresh topic
2 parents 54c9005 + 98cd8bd commit 12831c5

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

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

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: "Use the cluster connect to securely connect to Azure Arc-enabled Kubernetes clusters"
3-
ms.date: 08/30/2022
2+
title: "Use cluster connect to securely connect to Azure Arc-enabled Kubernetes clusters."
3+
ms.date: 01/18/2023
44
ms.topic: how-to
55
description: "With cluster connect, you can securely connect to Azure Arc-enabled Kubernetes clusters without requiring any inbound port to be enabled on the firewall."
66
---
@@ -14,7 +14,7 @@ Access to the `apiserver` of the Azure Arc-enabled Kubernetes cluster enables th
1414
- Interactive debugging and troubleshooting.
1515
- Cluster access to Azure services for [custom locations](custom-locations.md) and other resources created on top of it.
1616

17-
A conceptual overview of this feature is available in [Cluster connect - Azure Arc-enabled Kubernetes](conceptual-cluster-connect.md).
17+
Before you begin, review the [conceptual overview of the cluster connect feature](conceptual-cluster-connect.md).
1818

1919
## Prerequisites
2020

@@ -92,7 +92,7 @@ A conceptual overview of this feature is available in [Cluster connect - Azure A
9292

9393
### [Azure CLI](#tab/azure-cli)
9494

95-
1. Get the `objectId` associated with your Azure AD entity.
95+
1. Get the `objectId` associated with your Azure Active Directory (Azure AD) entity.
9696

9797
- For an Azure AD user account:
9898

@@ -123,7 +123,7 @@ A conceptual overview of this feature is available in [Cluster connect - Azure A
123123
124124
### [Azure PowerShell](#tab/azure-powershell)
125125
126-
1. Get the `objectId` associated with your Azure AD entity.
126+
1. Get the `objectId` associated with your Azure Active Directory (Azure AD) entity.
127127
128128
- For an Azure AD user account:
129129
@@ -186,6 +186,7 @@ A conceptual overview of this feature is available in [Cluster connect - Azure A
186186
```console
187187
TOKEN=$(kubectl get secret demo-user-secret -o jsonpath='{$.data.token}' | base64 -d | sed 's/$/\n/g')
188188
```
189+
189190
1. Get the token to output to console
190191
191192
```console
@@ -206,13 +207,7 @@ A conceptual overview of this feature is available in [Cluster connect - Azure A
206207
kubectl create clusterrolebinding demo-user-binding --clusterrole cluster-admin --serviceaccount default:demo-user
207208
```
208209

209-
1. Create a service account token by:
210-
211-
```console
212-
kubectl apply -f demo-user-secret.yaml
213-
```
214-
215-
Contents of `demo-user-secret.yaml`:
210+
1. Create a service account token. Create a `demo-user-secret.yaml` file with the following content:
216211

217212
```yaml
218213
apiVersion: v1
@@ -224,6 +219,12 @@ A conceptual overview of this feature is available in [Cluster connect - Azure A
224219
type: kubernetes.io/service-account-token
225220
```
226221

222+
Then run these commands:
223+
224+
```console
225+
kubectl apply -f demo-user-secret.yaml
226+
```
227+
227228
```console
228229
$TOKEN = ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String((kubectl get secret demo-user-secret -o jsonpath='{$.data.token}'))))
229230
```

0 commit comments

Comments
 (0)