Skip to content

Commit

Permalink
added the additional ports
Browse files Browse the repository at this point in the history
  • Loading branch information
vikashkaushik01 committed Aug 28, 2024
1 parent c8e5a90 commit c9dbf6f
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions nirmata_test/nirmata_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -903,13 +903,39 @@ check_protocol() {
}

# Verify specific ports
check_port 2379 tcp
check_port 2380 tcp
check_port 6443 tcp
check_port 8090 tcp
check_port 8091 tcp
check_port 8472 udp
check_port 10250 tcp
check_port 10251 tcp
check_port 10252 tcp
check_port 10255 tcp
check_port 10256 tcp
check_port 10257 tcp
check_port 10259 tcp
check_port 179 tcp
check_port 9099 tcp
check_port 4789 udp
check_port 179 tcp

# Verify protocol 4 (IP-in-IP for Calico)
check_protocol 4
# Additional cluster ports (incoming and outgoing)
check_port 53 udp # DNS
check_port 443 tcp # HTTPS
check_port 30000:32768 tcp # NodePort range

# Uncomment if you want to check the full range individually
# for port in {30000..32768}; do
# check_port $port tcp
# done

# DHCP ports (67/udp for server and 68/udp for client)
check_port 67 udp
check_port 68 udp

# Protocol 4 (IP-in-IP)
check_protocol 4
#test for docker
if ! systemctl is-active docker &>/dev/null ; then
warn 'Docker service is not active? Maybe you are using some other CRI??'
Expand Down

0 comments on commit c9dbf6f

Please sign in to comment.