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
+21-8Lines changed: 21 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/04/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,19 @@ 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 [cluster connect with service account token authentication](cluster-connect.md#service-account-token-authentication-option), ensure that the service account has a role that can authenticate to the cluster, such as `cluster-admin`:
- If using [Azure RBAC](azure-rbac.md), assign a role to your Azure Active Directory (Azure AD) entity that lets it authenticate to the cluster, such as [Azure Arc Kubernetes Viewer](/azure/role-based-access-control/built-in-roles):
25
+
26
+
```azurecli
27
+
az role assignment create --role "Azure Arc Kubernetes Viewer" --assignee $AAD_ENTITY_OBJECT_ID --scope $ARM_ID_CLUSTER
28
+
```
17
29
18
30
## View Kubernetes resources
19
31
@@ -25,19 +37,20 @@ To see the Kubernetes resources, navigate to your cluster in the Azure portal. T
25
37
-**Storage** shows your Azure storage classes and persistent volume information.
26
38
-**Configuration** shows your cluster's config maps and secrets.
27
39
28
-
[](media/kubernetes-resource-view/workloads.png#lightbox)
40
+
:::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
41
30
42
## Edit YAML
31
43
32
44
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
45
34
-
After you edit the YAML, select **Review + save**, confirm the changes, and then save again.
46
+
>[!WARNING]
47
+
> 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
48
36
-
[](media/kubernetes-resource-view/yaml-editor.png#lightbox)
49
+
After you edit the YAML, select **Review + save**, confirm the changes, and then save again.
37
50
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).
51
+
:::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
52
41
53
## Next steps
42
54
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.
55
+
- 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.
56
+
- Learn about [identity and access options for Azure Arc-enabled Kubernetes](identity-access-overview.md).
0 commit comments