Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

An example of solving the error report of Azure Kubernetes dashboard

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Azure Kubernetes Service (AKS) makes it easy to deploy a managed Kubernetes cluster in Azure. AKS reduces the complexity and operational overhead of managing Kubernetes by transferring most of the responsibility to Azure. As a hosted Kubernetes service, Azure handles key tasks such as health monitoring and maintenance. Kubernetes is managed by Azure. We only need to manage and maintain the agent node.

You can use Azure CLI to create AKS clusters in the Azure portal, or you can use template-driven deployment options such as Resource Manager templates and Terraform to create AKS clusters. When we deploy the AKS cluster, we will deploy and configure the Kubernetes master node and all nodes. Other features can also be configured during deployment, such as advanced networking, Azure Active Directory integration, and monitoring.

Recently, we chose to use RBAC when creating an AKS cluster, so when accessing the Kubernetes dashboard, we encountered the following error:

The reason for this error is that we do not have access to the Kubernetes dashboard.

We can solve the above problem by running the following command in Bash:

Kubectl create clusterrolebinding kubernetes-dashboard-clusterrole=cluster-admin-serviceaccount=kube-system:kubernetes-dashboard

The above command creates a cluster role binding for the Kubernetes dashboard linked to the cluster role cluster-admin. The successful execution of the command is shown below:

At this point, we open the Kubernetes dashboard here and see that the problem has been resolved:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report