URL has been copied successfully!
URL has been copied successfully!
URL has been copied successfully!
URL has been copied successfully!
URL has been copied successfully!
Share:
Twitter
LinkedIn
Facebook
Reddit
Follow by Email
Copy link
Threads
Bluesky
Reading Time: 2 minutes

I have been playing around with AKS a bit now and recently came across the ability to disable the Kubernetes dashboard in AKS using the preview extension. I am not too sure when the CLI extension will be out of preview, but I am sure the same command will work.

If like me, you only use the CLI to manage Kubernetes and you want to remove what some say is a security issue then this command is for you.

The command

az aks disable-addons --addons kube-dashboard --resource-group pixel-aks--name pixel-aks --verbose

Just make sure you change the command to your resource group and your AKS name.

But wait!

But before we run the command, let’s have a look at the kube-system namespace.

If you are not sure how to do that then use the following command.

kubectl get deployments --namespace kube-system

As you can see we have a deployment called kubernetes-dashboard.

If you then run the first command to disable the dashboard.

Now, if you run the kubectl get command again you will see the deployment kubernetes-dashboard has gone.

Oh no, I need the dashboard after all

No fear, you can easily add the dashboard back by using the following command.

az aks enable-addons --addons kube-dashboard --resource-group pixel-aks--name pixel-aks --verbose

After that command completes you will have the dashboard back!

All in all

I hope you found this article helpful. I think this is a cool new feature that is coming to AKS. And can be a good way to help you manage kubernetes addons like the Azure monitoring agent.

If you have any questions please reach out.

Share:
Twitter
LinkedIn
Facebook
Reddit
Follow by Email
Copy link
Threads
Bluesky

Pixel Robots.

I’m Richard Hooper aka Pixel Robots. I started this blog in 2016 for a couple reasons. The first reason was basically just a place for me to store my step by step guides, troubleshooting guides and just plain ideas about being a sysadmin. The second reason was to share what I have learned and found out with other people like me. Hopefully, you can find something useful on the site.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *