Last active
February 20, 2024 15:09
-
-
Save andrewfinnell/bcca20a940b17fcea793d593b56155d3 to your computer and use it in GitHub Desktop.
Remove Kubernetes Dashboard with Namespace Support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
kubectl delete -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml | |
## OR | |
kubectl get deployments -A | |
kubectl delete service kubernetes-dashboard --namespace=kubernetes-dashboard | |
kubectl delete service dashboard-metrics-scraper --namespace=kubernetes-dashboard | |
kubectl delete sa kubernetes-dashboard --namespace=kubernetes-dashboard | |
kubectl delete secret kubernetes-dashboard-certs --namespace=kubernetes-dashboard | |
kubectl delete secret kubernetes-dashboard-key-holder --namespace=kubernetes-dashboard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this!