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
69
70
71
72
|
[root@node61 perf-test]# kubectl get ns
NAME STATUS AGE
0eaea880-7d1c-4d07-8fa5-dc71eb10aa8a Active 5d22h
aistation Active 6d
default Active 6d13h
kube-node-lease Active 6d13h
kube-public Active 6d13h
kube-system Active 6d13h
kubeflow Active 6d
kubemark Active 5d23h
monitoring Active 4d23h
test-pyb3an-1 Terminating 15m
[root@node61 perf-test]# cat temp.json
{
"apiVersion": "v1",
"kind": "Namespace",
"metadata": {
"creationTimestamp": "2021-03-04T08:06:07Z",
"deletionTimestamp": "2021-03-05T07:20:42Z",
"name": "tsung",
"resourceVersion": "2875375",
"selfLink": "/api/v1/namespaces/tsung",
"uid": "790d2ec0-7cc0-11eb-a786-6c92bf8b7fa6"
},
"spec": {
"finalizers": [
"kubernetes"
]
},
"status": {
"phase": "Terminating"
}
}
[root@node61 perf-test]# vi temp.json
[root@node61 perf-test]#
[root@node61 perf-test]#
[root@node61 perf-test]#
[root@node61 perf-test]# curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 10.151.11.61:8080/api/v1/namespaces/tsung/finalize
{
"kind": "Namespace",
"apiVersion": "v1",
"metadata": {
"name": "tsung",
"selfLink": "/api/v1/namespaces/tsung/finalize",
"uid": "790d2ec0-7cc0-11eb-a786-6c92bf8b7fa6",
"resourceVersion": "6375674",
"creationTimestamp": "2021-03-04T08:06:07Z",
"deletionTimestamp": "2021-03-05T07:20:42Z"
},
"spec": {
},
"status": {
"phase": "Terminating"
}
}[root@node61 perf-test]#
[root@node61 perf-test]#
[root@node61 perf-test]# kubectl get ns
NAME STATUS AGE
0eaea880-7d1c-4d07-8fa5-dc71eb10aa8a Active 5d22h
aistation Active 6d
default Active 6d13h
kube-node-lease Active 6d13h
kube-public Active 6d13h
kube-system Active 6d13h
kubeflow Active 6d
kubemark Active 5d23h
monitoring Active 4d23h
|