kubectl logs command intermittently fails with "getsockopt: no route to host" error.
# kubectl logs -f mypod-5c46d5c75d-2Cbtj
Error from server: Get https://X.X.X.X:10250/containerLogs/default/mypod-5c46d5c75d-2Cbtj/metaservichart?follow=true: dial tcp X.X.X.X:10250: getsockopt: no route to host
If I run the same command 5-6 times it works. I am not sure why this is happening. Any help will be really appreciated.