Kubectl can list all the pods but cannot get logs or connect to them

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

Cluster information:

Kubernetes version: 1.25.3
Cloud being used: bare-metal
Installation method: kind and kubectl
Host OS: Ubuntu

I can list all the pods using kubectl command.

kubectl get pods
NAME                         READY   STATUS    RESTARTS   AGE
details-68798648c5-dhflm     1/1     Running   0          66m
frontend-7f68d468fb-l62d9    1/1     Running   0          66m
pinger-v1-759477f7c6-glgfd   1/1     Running   0          66m
pinger-v2-86c588f594-g5pdw   1/1     Running   0          66m

however when i try to port forward using kubectl or even log these pods, i get that the i/o timeout error.

kubectl logs details-68798648c5-dhflm
Error from server: Get "": dial tcp i/o timeout

I can’t figure out where the problem is and how to resolve it.