I'm trying to execute kubectl logs on one of my pods.

When pod is created on node different than master - it fails with following message:

Error from server: Get https://kube-worker-3:10250/containerLogs/my-namespace/my-pod-name/my-statefulset-name: Gateway Timeout

I thought that port may be closed, but when I check it with nmap, it works:

root@server:~# nmap -Pn -p 10250 kube-worker-3

Starting Nmap 7.01 ( https://nmap.org ) at 2018-03-26 02:10 EDT
Nmap scan report for kube-worker-3 (MY_NODE_IP)
Host is up (0.00053s latency).
10250/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.28 seconds

I have all hosts added to my /etc/hosts file on master node so they are resolved properly.

When pod is created on master branch, I can get logs without any problems..

Any ideas what else I should check here?

  • Gateway Timeouts are usually an issue to some sort of network/firewall rule that is blocking you. Do you have a way to check those? – Jeff Garrett Jun 26 '18 at 16:47
  • Could you reply to the comment? – 030 Dec 23 '19 at 9:08
  • Unfortunately not anymore, this was so long time ago that I don't have access to this infrastructure anymore. – Morishiri Dec 23 '19 at 17:09

Browse other questions tagged or ask your own question.