Solved

"kubectil get nodes "getting error Unable to connect to the server: net/http: TLS handshake timeout

  • 23 January 2024
  • 3 replies
  • 508 views

Userlevel 3
Badge +8

hello experts,

getting below error while trying  to check the status with kubectl...any clue will be appreciated.

"kubectil get nodes "

getting error Unable to connect to the server: net/http: TLS handshake timeout

 

Regards

Sujeeth S

icon

Best answer by Sujeet Saxena 1 February 2024, 15:58

View original

3 replies

Userlevel 5
Badge +11

Check if internet in enabled on middle tier/kubernetes 

regards 

pankaj 

Userlevel 5
Badge +12

Hi Sujeet,

Please check that port 16443 is open between your IFS Windows Management server and the IFS Remote server.

Test-NetConnection -ComputerName <ifs-remote> -Port 16443

If it is being blocked by a firewall, please check with your network administrator to allow the connection. While you are at it, please also check port 22 (SSH) as well.

Best regards -- Ben

Userlevel 3
Badge +8

Thanks all for your help. we have identified the issue.

Since we were not using the default port 22 hence we have to update the .Json and .Psm1file..

where we put -Port 22022 instead of -P 22022 on Common.psm1 file ,after fixing this we were able to resolved the issue.

Below is the line which we fixed in common.psm1file

“ ssh -t -i $pvtKeyFilePath  "-p 22022 “

 

Reply