-
Notifications
You must be signed in to change notification settings - Fork 46
/
services_teardown.sh
executable file
·19 lines (17 loc) · 1.1 KB
/
services_teardown.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
# East
kubectl delete -f video-server/videoservice.yaml --kubeconfig=terraform/east-kubeconfig
helm delete grafana --purge --kubeconfig=terraform/east-kubeconfig
helm delete prometheus --purge --kubeconfig=terraform/east-kubeconfig
kubectl delete -f prometheus/prometheus-storageclass.yaml --kubeconfig=terraform/east-kubeconfig
helm delete heapster --purge --kubeconfig=terraform/east-kubeconfig
helm delete mywebserver --purge --kubeconfig=terraform/east-kubeconfig
kubectl delete -f externalDNS/externaldns.yaml --kubeconfig=terraform/east-kubeconfig
# West
kubectl delete -f video-server/videoservice.yaml --kubeconfig=terraform/west-kubeconfig
helm delete grafana --purge --kubeconfig=terraform/west-kubeconfig
helm delete prometheus --purge --kubeconfig=terraform/west-kubeconfig
kubectl delete -f prometheus/prometheus-storageclass.yaml --kubeconfig=terraform/west-kubeconfig
helm delete heapster --purge --kubeconfig=terraform/west-kubeconfig
helm delete mywebserver --purge --kubeconfig=terraform/west-kubeconfig
kubectl delete -f externalDNS/externaldns.yaml --kubeconfig=terraform/west-kubeconfig