Skip to content

Commit 39afdc4

Browse files
author
Leo Ryu
authored
fix(console): update clean script (#2195)
1 parent e836e99 commit 39afdc4

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Diff for: tools/clean.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ rm -rfv /opt/tke-installer
3131
rm -rfv /var/lib/postgresql /etc/core/token /var/lib/redis /storage /chart_storage
3232
ip link del cni0 2>/etc/null
3333

34-
for port in 80 2379 6443 8086 9100 {10249..10259} ; do
34+
for port in 80 443 2379 2380 6443 8086 8181 9100 30086 31138 31180 31443 {10249..10259} ; do
3535
fuser -k -9 ${port}/tcp
3636
done
3737

@@ -59,4 +59,7 @@ iptables --flush
5959
iptables --flush --table nat
6060
iptables --flush --table filter
6161
iptables --table nat --delete-chain
62-
iptables --table filter --delete-chain
62+
iptables --table filter --delete-chain
63+
64+
# reboot
65+
reboot now

Diff for: web/console/src/modules/cluster/constants/Config.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ rm -rfv /opt/tke-installer
722722
rm -rfv /var/lib/postgresql /etc/core/token /var/lib/redis /storage /chart_storage
723723
ip link del cni0 2>/etc/null
724724
725-
for port in 80 2379 6443 8086 9100 {10249..10259} ; do
725+
for port in 80 443 2379 2380 6443 8086 8181 9100 30086 31138 31180 31443 {10249..10259} ; do
726726
fuser -k -9 \${port}/tcp
727727
done
728728
@@ -750,7 +750,10 @@ iptables --flush
750750
iptables --flush --table nat
751751
iptables --flush --table filter
752752
iptables --table nat --delete-chain
753-
iptables --table filter --delete-chain`;
753+
iptables --table filter --delete-chain
754+
755+
# reboot
756+
reboot now`;
754757

755758
export enum GPUTYPE {
756759
PGPU = 'Physical',

0 commit comments

Comments
 (0)