Skip to content

Commit

Permalink
fix(console): update clean script (#2195)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu authored Dec 2, 2022
1 parent e836e99 commit 39afdc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions tools/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rm -rfv /opt/tke-installer
rm -rfv /var/lib/postgresql /etc/core/token /var/lib/redis /storage /chart_storage
ip link del cni0 2>/etc/null

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

Expand Down Expand Up @@ -59,4 +59,7 @@ iptables --flush
iptables --flush --table nat
iptables --flush --table filter
iptables --table nat --delete-chain
iptables --table filter --delete-chain
iptables --table filter --delete-chain

# reboot
reboot now
7 changes: 5 additions & 2 deletions web/console/src/modules/cluster/constants/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ rm -rfv /opt/tke-installer
rm -rfv /var/lib/postgresql /etc/core/token /var/lib/redis /storage /chart_storage
ip link del cni0 2>/etc/null
for port in 80 2379 6443 8086 9100 {10249..10259} ; do
for port in 80 443 2379 2380 6443 8086 8181 9100 30086 31138 31180 31443 {10249..10259} ; do
fuser -k -9 \${port}/tcp
done
Expand Down Expand Up @@ -750,7 +750,10 @@ iptables --flush
iptables --flush --table nat
iptables --flush --table filter
iptables --table nat --delete-chain
iptables --table filter --delete-chain`;
iptables --table filter --delete-chain
# reboot
reboot now`;

export enum GPUTYPE {
PGPU = 'Physical',
Expand Down

0 comments on commit 39afdc4

Please sign in to comment.