Kubernetes ssh into pods fails

2/14/2016

I'm trying to ssh into my pod with this command

kubectl --namespace=default exec -ti pod-name /bin/bash

I get this error:

Content-Type specified (plain/text) must be 'application/json'

The process gets stuck and I have to close the terminal.

I was able to ssh into my pods before I re install kubernetes in my machine. Is this an issue with latest kubernetes releases?

-- Dimuthu
kubernetes

1 Answer

2/15/2016

You're not trying to "ssh", you're forwarding your standard input and receiving a standard output over HTTP through the Kubernetes API.

That said, you're using Docker 1.10 whereas Kubernetes doesn't support it yet. Check this out https://github.com/kubernetes/kubernetes/issues/19720

edit:
Kubernetes supports Docker 1.10+ since the 1.3.0 release.

-- Antoine Cotten
Source: StackOverflow