-
Notifications
You must be signed in to change notification settings - Fork 21
/
delete-resource.sh
executable file
·68 lines (53 loc) · 2.09 KB
/
delete-resource.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# etcd configmap
kubectl delete cm curve-etcd-conf-a -n curve
kubectl delete cm curve-etcd-conf-b -n curve
kubectl delete cm curve-etcd-conf-c -n curve
kubectl delete cm curve-etcd-conf -n curve
# override configmap
kubectl delete cm etcd-endpoints-override -n curve
# kubectl delete cm mds-endpoints-override -n curve
# chunkserver 4 configmap
kubectl delete cm format-chunkfile-conf -n curve
kubectl delete cm curve-chunkserver-conf -n curve
kubectl delete cm cs-client-conf -n curve
kubectl delete cm s3-conf -n curve
kubectl delete cm start-chunkserver-conf -n curve
kubectl delete cm topology-json-conf -n curve
kubectl delete cm tools-conf -n curve
kubectl delete cm mds-endpoints-override -n curve
kubectl delete cm snapshotclone-conf -n curve
kubectl delete cm snap-client-conf -n curve
kubectl delete cm nginx-conf -n curve
kubectl delete cm start-snap-conf -n curve
kubectl delete cm chunkserver-conf-template -n curve
kubectl delete cm client-conf-template -n curve
kubectl delete cm cs-conf-template -n curve
kubectl delete cm start-snap-conf -n curve
kubectl delete cm start-snap-conf -n curve
kubectl delete cm start-snap-conf -n curve
kubectl delete cm start-snap-conf -n curve
# etcd deployment
kubectl delete deploy curve-etcd-a -n curve
kubectl delete deploy curve-etcd-b -n curve
kubectl delete deploy curve-etcd-c -n curve
# mds configmap
kubectl delete cm curve-mds-config -n curve
# mds deployment
kubectl delete deploy curve-mds-a -n curve
kubectl delete deploy curve-mds-b -n curve
kubectl delete deploy curve-mds-c -n curve
# chunkserver deployment
kubectl delete deploy curve-chunkserver-node1-sdb -n curve
kubectl delete deploy curve-chunkserver-node2-sdb -n curve
# snapshotclone deployment
kubectl delete deploy curve-snapshotclone-a -n curve
kubectl delete deploy curve-snapshotclone-b -n curve
kubectl delete deploy curve-snapshotclone-c -n curve
# all job in curve cluster
kubectl delete --all job -n curve
# all deploy in curve cluster
kubectl delete --all deployment -n curve
# all po in curve cluster
kubectl delete --all pods -n curve
# curvecluster cr
kubectl delete -f config/samples/