Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Deleting Prometheus Operator leftovers
kubectl -n monitoring delete pvc prometheus-prometheus-operator-prometheus-db-prometheus-prometheus-operator-prometheus-0
kubectl -n monitoring delete deployment prometheus-operator-grafana prometheus-operator-kube-state-metrics prometheus-operator-operator
kubectl -n monitoring delete svc prometheus-operator-alertmanager prometheus-operator-grafana prometheus-operator-kube-state-metrics prometheus-operator-operator prometheus-operator-prometheus prometheus-operator-prometheus-node-exporter
kubectl -n monitoring delete daemonset prometheus-operator-prometheus-node-exporter
kubectl -n monitoring delete cm prometheus-operator-apiserver prometheus-operator-cluster-total prometheus-operator-controller-manager prometheus-operator-etcd prometheus-operator-grafana prometheus-operator-grafana-config-dashboards prometheus-operator-grafana-datasource prometheus-operator-grafana-test prometheus-operator-k8s-coredns prometheus-operator-k8s-resources-cluster prometheus-operator-k8s-resources-namespace prometheus-operator-k8s-resources-node prometheus-operator-k8s-resources-pod prometheus-operator-k8s-resources-workload prometheus-operator-k8s-resources-workloads-namespace prometheus-operator-kubelet prometheus-operator-namespace-by-pod prometheus-operator-namespace-by-workload prometheus-operator-node-cluster-rsrc-use prometheus-operator-node-rsrc-use prometheus-operator-nodes prometheus-operator-persistentvolumesusage prometheus-operator-pod-total prometheus-operator-prometheus prometheus-operator-proxy prometheus-operator-scheduler prometheus-operator-statefulset prometheus-operator-workload-total
kubectl -n monitoring get delete sa prometheus-operator-alertmanager prometheus-operator-grafana prometheus-operator-grafana-test prometheus-operator-kube-state-metrics prometheus-operator-operator prometheus-operator-prometheus prometheus-operator-prometheus-node-exporter
kubectl -n monitoring delete clusterrolebinding prometheus-operator-grafana-clusterrolebinding prometheus-operator-kube-state-metrics prometheus-operator-operator prometheus-operator-operator-psp prometheus-operator-prometheus-psp prometheus-operator-prometheus psp-prometheus-operator-kube-state-metrics psp-prometheus-operator-prometheus-node-exporter
kubectl -n monitoring delete role prometheus-operator-alertmanager prometheus-operator-grafana-test prometheus-operator-grafana
kubectl -n monitoring delete psp prometheus-operator-alertmanager prometheus-operator-grafana prometheus-operator-grafana-test prometheus-operator-kube-state-metrics prometheus-operator-operator prometheus-operator-prometheus prometheus-operator-prometheus-node-exporter
kubectl -n monitoring delete clusterrole prometheus-operator-grafana-clusterrole prometheus-operator-kube-state-metrics prometheus-operator-operator prometheus-operator-operator-psp prometheus-operator-prometheus prometheus-operator-prometheus-psp psp-prometheus-operator-kube-state-metrics psp-prometheus-operator-prometheus-node-exporter
kubectl -n monitoring delete RoleBinding prometheus-operator-alertmanager prometheus-operator-grafana prometheus-operator-grafana-test
kubectl -n monitoring delete ingress prometheus-operator-grafana
kubectl -n kube-system delete svc prometheus-operator-kube-proxy prometheus-operator-kube-scheduler prometheus-operator-kubelet prometheus-operator-kube-etcd prometheus-operator-kube-controller-manager prometheus-operator-coredns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment