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/azure-arc/kubernetes/kubernetes-resource-view.md
+23-8Lines changed: 23 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Access Kubernetes resources from Azure portal
3
-
ms.date: 07/22/2022
3
+
ms.date: 08/07/2023
4
4
ms.topic: how-to
5
5
description: Learn how to interact with Kubernetes resources to manage an Azure Arc-enabled Kubernetes cluster from the Azure portal.
6
6
---
@@ -13,7 +13,21 @@ The Azure portal includes a Kubernetes resource view for easy access to the Kube
13
13
14
14
- An existing Kubernetes cluster [connected](quickstart-connect-cluster.md) to Azure as an Azure Arc-enabled Kubernetes resource.
15
15
16
-
-[Service account token](cluster-connect.md#service-account-token-authentication-option) for authentication to the cluster.
16
+
- An account that can authenticate to the cluster and access the resources in the portal:
17
+
18
+
- If using [Azure RBAC](azure-rbac.md), ensure that the Azure Active Directory (Azure AD) account that will access the portal has a role that lets it authenticate to the cluster, such as [Azure Arc Kubernetes Viewer](/azure/role-based-access-control/built-in-roles):
19
+
20
+
```azurecli
21
+
az role assignment create --role "Azure Arc Kubernetes Viewer" --assignee $AAD_ENTITY_OBJECT_ID --scope $ARM_ID_CLUSTER
22
+
```
23
+
24
+
- If using [cluster connect with service account token authentication](cluster-connect.md#service-account-token-authentication-option), ensure that the account uses a Kubernetes cluster role that can authenticate to the cluster, such as `cluster-admin`:
The same account must have an Azure role such as [Azure Arc Kubernetes Viewer](/azure/role-based-access-control/built-in-roles) in order to authenticate to the Azure portal and view Arc-enabled cluster resources.
17
31
18
32
## View Kubernetes resources
19
33
@@ -25,19 +39,20 @@ To see the Kubernetes resources, navigate to your cluster in the Azure portal. T
25
39
-**Storage** shows your Azure storage classes and persistent volume information.
26
40
-**Configuration** shows your cluster's config maps and secrets.
27
41
28
-
[](media/kubernetes-resource-view/workloads.png#lightbox)
42
+
:::image type="content" source="media/kubernetes-resource-view/workloads.png" alt-text="Screenshot of Kubernetes workloads information in the Azure portal." lightbox="media/kubernetes-resource-view/workloads.png":::
29
43
30
44
## Edit YAML
31
45
32
46
The Kubernetes resource view also includes a YAML editor. A built-in YAML editor means you can update Kubernetes objects from within the portal and apply changes immediately.
33
47
34
-
After you edit the YAML, select **Review + save**, confirm the changes, and then save again.
48
+
>[!WARNING]
49
+
> The Azure portal Kubernetes management capabilities and the YAML editor are built for learning and flighting new deployments in a development and test setting. Performing direct production changes by editing the YAML is not recommended. For production environments, consider using [GitOps to apply configurations](tutorial-use-gitops-flux2.md).
35
50
36
-
[](media/kubernetes-resource-view/yaml-editor.png#lightbox)
51
+
After you edit the YAML, select **Review + save**, confirm the changes, and then save again.
37
52
38
-
>[!WARNING]
39
-
> The Azure portal Kubernetes management capabilities and the YAML editor are built for learning and flighting new deployments in a development and testing setting. Performing direct production changes via UI or CLI is not recommended. For production environments, consider using [Configurations (GitOps)](tutorial-use-gitops-flux2.md).
53
+
:::image type="content" source="media/kubernetes-resource-view/yaml-editor.png" alt-text="Screenshot showing the YAML editor for Kubernetes objects displayed in the Azure portal." lightbox="media/kubernetes-resource-view/yaml-editor.png":::
40
54
41
55
## Next steps
42
56
43
-
Azure Monitor for containers provides more in-depth information about nodes and containers of the cluster when compared to the Kubernetes resource view described in this article. Learn how to [deploy Azure Monitor for containers](../../azure-monitor/containers/container-insights-enable-arc-enabled-clusters.md?toc=/azure/azure-arc/kubernetes/toc.json) on your cluster.
57
+
- Learn how to [deploy Azure Monitor for containers](../../azure-monitor/containers/container-insights-enable-arc-enabled-clusters.md?toc=/azure/azure-arc/kubernetes/toc.json) for more in-depth information about nodes and containers on your clusters.
58
+
- Learn about [identity and access options for Azure Arc-enabled Kubernetes](identity-access-overview.md).
0 commit comments