Kubernetes api pod keep on restarting

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.27.3
Cloud being used: put bare-metal
Installation method: kubeadm
Host OS: centos

I have 4 node cluster. One master and three workers. My API service is checking for the availability of the master node IP and port 6443 so the liveness probe failing and restarting. some time it is coming and I’m able to connect.

so I checked telnet with the master node IP and port from the master node itself, during the API server restart I could telnet and it connected for a short period.
same telnet I tried from a worker node and I am getting the connection.

The connection is intermittent.