Fix teardown

This commit is contained in:
CarlosEDP 2018-04-10 12:24:12 -05:00
parent 78bc39ab66
commit 849c3917c4

View File

@ -16,13 +16,14 @@ kctl() {
} }
kctl delete -f manifests/node-exporter kctl delete -f manifests/node-exporter
kctl delete -f manifests/armexporter
kctl delete -f manifests/kube-state-metrics kctl delete -f manifests/kube-state-metrics
kctl delete -f manifests/grafana kctl delete -f manifests/grafana
find manifests/prometheus -type f ! -name prometheus-k8s-roles.yaml ! -name prometheus-k8s-role-bindings.yaml -exec kubectl --namespace "$NAMESPACE" delete -f {} \; 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-roles.yaml
kubectl delete -f manifests/prometheus/prometheus-k8s-role-bindings.yaml kubectl delete -f manifests/prometheus/prometheus-k8s-role-bindings.yaml
kctl delete -f manifests/alertmanager kctl delete -f manifests/alertmanager
kctl delete -f manifests/smtp-server
# Hack: wait a bit to let the controller delete the deployed Prometheus server. # Hack: wait a bit to let the controller delete the deployed Prometheus server.
sleep 5 sleep 5