kube-prometheus: run prometheus-k8s with only those roles it needs

This commit is contained in:
Frederic Branczyk
2017-06-29 16:32:51 +02:00
parent c0a3447c01
commit c97a329792
6 changed files with 110 additions and 32 deletions

View File

@@ -15,7 +15,9 @@ kctl() {
kctl delete -f manifests/node-exporter
kctl delete -f manifests/kube-state-metrics
kctl delete -f manifests/grafana
kctl delete -f manifests/prometheus
find manifests/prometheus -type f ! -name prometheus-k8s-roles.yaml ! -name prometheus-k8s-role-bindings.yaml -exec kubectl --namespace "$NAMESPACE" delete -f {} \;
kubectl delete -f manifests/prometheus/prometheus-k8s-roles.yaml
kubectl delete -f manifests/prometheus/prometheus-k8s-role-bindings.yaml
kctl delete -f manifests/alertmanager
# Hack: wait a bit to let the controller delete the deployed Prometheus server.