Skip to content

Commit 90eb0b8

Browse files
committed
more clarifications
1 parent b7d6c92 commit 90eb0b8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Use cluster connect to securely connect to Azure Arc-enabled Kubernetes clusters."
3-
ms.date: 04/19/2023
3+
ms.date: 04/20/2023
44
ms.topic: how-to
55
ms.custom: devx-track-azurecli
66
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."
@@ -160,17 +160,18 @@ Before you begin, review the [conceptual overview of the cluster connect feature
160160
161161
### [Azure CLI](#tab/azure-cli)
162162
163-
1. With the `kubeconfig` file pointing to the `apiserver` of your Kubernetes cluster, run this command to create a service account. This example creates the service account in the default namespace, but you can substitute any other namespace.
163+
1. With the `kubeconfig` file pointing to the `apiserver` of your Kubernetes cluster, run this command to create a service account. This example creates the service account in the default namespace, but you can substitute any other namespace for `default`.
164164
165165
```console
166166
kubectl create serviceaccount demo-user -n default
167167
```
168168

169-
1. Create ClusterRoleBinding to grant this [service account the appropriate permissions on the cluster](https://kubernetes.io/docs/reference/access-authn-authz/rbac/#kubectl-create-rolebinding). Example:
169+
1. Create ClusterRoleBinding to grant this [service account the appropriate permissions on the cluster](https://kubernetes.io/docs/reference/access-authn-authz/rbac/#kubectl-create-rolebinding). If you used a different namespace in the first command, substitute it here for `default`.
170170

171171
```console
172172
kubectl create clusterrolebinding demo-user-binding --clusterrole cluster-admin --serviceaccount default:demo-user
173173
```
174+
“kubectl create clusterrolebinding demo-user-binding --clusterrole cluster-admin --serviceaccount <custom-namespace-of-CX>:demo-user”
174175

175176
1. Create a service account token:
176177

0 commit comments

Comments
 (0)