forked from vmware-archive/s1p2017-faas-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path8_delete_demo.sh
executable file
·38 lines (30 loc) · 888 Bytes
/
8_delete_demo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
exe() { echo "\$ $@" ; "$@" ; }
echo " "
echo "------------------------------"
echo "Uninstall riff"
echo "------------------------------"
echo " "
exe riff delete -f functions/vote-counter/ --all
exe riff delete -f functions/redis-writer/ --all
exe riff delete -f functions/vote-stream-processor/
echo " "
echo "------------------------------"
echo "Deleting Demo UI"
echo "------------------------------"
echo " "
exe kubectl delete deployment votes-ui
exe kubectl delete service votes-ui
echo " "
echo "------------------------------"
echo "Deleting Demo Redis"
echo "------------------------------"
echo " "
exe helm delete counters --purge
echo " "
echo "------------------------------"
echo "Deleting GKE RBAC"
echo "------------------------------"
echo " "
exe kubectl delete rolebinding votes-ui
exe kubectl delete serviceaccount votes-ui
exe kubectl delete role votes-ui