kubectl exec fails while kubectl logs works

7/20/2016

This reliably fails for me:

$ kubectl --namespace=blah exec -t -i infra-web-2181569391-65mtk -c apache bash Error from server: ssh: rejected: connect failed (Connection timed out)

while this reliably works, proving that master-node connectivity is OK:

$ kubectl --namespace=blah logs infra-web-2181569391-65mtk -c apache [some messages from apache]

What could be the reason?

BTW, using ls in place of bash has the same result.

-- Marcin Owsiany
google-kubernetes-engine

0 Answers