-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinstall-debugging-tools.sh
More file actions
executable file
·45 lines (36 loc) · 1.21 KB
/
install-debugging-tools.sh
File metadata and controls
executable file
·45 lines (36 loc) · 1.21 KB
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
if ! kubectl exec -n cortexflow $1 -c $2 -- which netstat >/dev/null 2>&1; then
echo "🔨 installing netstat"
kubectl exec -n cortexflow $1 -c $2 -- apt update
kubectl exec -n cortexflow $1 -c $2 -- apt install -y net-tools
else
echo "✅ Netstat is installed."
fi
sleep 1.5
if ! kubectl exec -n cortexflow $1 -c $2 -- which nc >/dev/null 2>&1; then
echo "🔨 installing netcat"
kubectl exec -n cortexflow $1 -c $2 -- apt install -y netcat-traditional
else
echo "✅ Netcat is installed."
fi
sleep 1.5
if ! kubectl exec -n cortexflow $1 -c $2 -- which curl >/dev/null 2>&1; then
echo "🔨 installing curl"
kubectl exec -n cortexflow $1 -c $2 -- apt install -y curl
else
echo "✅ Curl is installed."
fi
sleep 1.5
if ! kubectl exec -n cortexflow $1 -c $2 -- which nslookup >/dev/null 2>&1; then
echo "🔨 installing dnsutils"
kubectl exec -n cortexflow $1 -c $2 -- apt install -y dnsutils
else
echo "✅ Nslookup is installed."
fi
sleep 1.5
if ! kubectl exec -n cortexflow $1 -c $2 -- which tcpdump >/dev/null 2>&1; then
echo "🔨 installing tcpdump"
kubectl exec -n cortexflow $1 -c $2 -- apt install -y tcpdump
else
echo "✅ tcpdump is installed."
fi
sleep 1.5