title: Can't see logs of kubernetes pod
body: <p>After installing kubernetes cluster following this <a href="https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#pod-network" rel="nofollow noreferrer">guide</a> I decided to check logs of system pod <em>kube-scheduler</em> to ensure that all works fine:</p>
  
  <pre><code> kubectl logs --namespace kube-system kube-scheduler-user223225-pc
  </code></pre>
  
  <p>but I got next error message:</p>
  
  <pre><code>Error from server: Get https://10.2.2.131:10250/containerLogs/kube-system/kube-scheduler-user-pc/kube-scheduler: dial tcp 10.2.2.131:10250: getsockopt: no route to host
  </code></pre>
  
  <p>I try to get logs from other pods and got the same error.</p>
  
  <p>I run the cluster on Ubuntu 16.04 and chose flannel network installed using the next commands:</p>
  
  <pre><code>kubectl taint nodes --all node-role.kubernetes.io/master-
  kubectl create -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel-rbac.yml
  kubectl create --namespace kube-system -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
  </code></pre>
  
  <p>Maybe, I missed something, also I see people suggest to configure firewall but it didn't help me:</p>
  
  <pre><code>sudo systemctl stop kubelet
  sudo systemctl stop docker
  sudo ifconfig cni0 down
  sudo ifconfig flannel.1 down
  sudo ifconfig docker0 down
  
  sudo service docker start
  sudo service kubelet start
  
  sudo iptables -A FORWARD -i cni0 -j ACCEPT
  sudo iptables -A FORWARD -o cni0 -j ACCEPT
  </code></pre>
  
  <p>Does someone know how to fix the issue with getting logs? Thank you in advance.</p>