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). PORT STATE SERVICE 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?