Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save egeneralov/090ca174f2591411da0825ce9acb286c to your computer and use it in GitHub Desktop.

Select an option

Save egeneralov/090ca174f2591411da0825ce9acb286c to your computer and use it in GitHub Desktop.
#!/bin/bash -xe
kubectl delete -n gitlab-managed-apps \
configmap/prometheus.v1 \
configmap/prometheus-prometheus-server \
pvc/prometheus-prometheus-server \
sa/prometheus-prometheus-server \
sa/prometheus-node-exporter \
sa/prometheus-alertmanager \
sa/prometheus-kube-state-metrics \
sa/prometheus-pushgateway \
clusterroles.rbac.authorization.k8s.io/prometheus-prometheus-server \
clusterroles.rbac.authorization.k8s.io/prometheus-kube-state-metrics \
clusterrolebindings.rbac.authorization.k8s.io/prometheus-prometheus-server \
clusterrolebindings.rbac.authorization.k8s.io/prometheus-kube-state-metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment