Reading Time: 2 minutes
Share:
Twitter
LinkedIn
Facebook
Reddit
Whatsapp
Follow by Email

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

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.

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.

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
Whatsapp
Follow by Email

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

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

*

I agree