Skip to content

Instantly share code, notes, and snippets.

@andrewfinnell
Last active February 20, 2024 15:09
Show Gist options
  • Save andrewfinnell/bcca20a940b17fcea793d593b56155d3 to your computer and use it in GitHub Desktop.
Save andrewfinnell/bcca20a940b17fcea793d593b56155d3 to your computer and use it in GitHub Desktop.
Remove Kubernetes Dashboard with Namespace Support
#!/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
@AngelChaidez
Copy link

Thank you for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment