<p>Im using fabric8 Kubernetes Java Client and Im accessing Kubernetes through HTTP, I followed the example from 
<a href="https://github.com/fabric8io/kubernetes-client/blob/master/kubernetes-examples/src/main/java/io/fabric8/kubernetes/examples/ExecExample.java" rel="nofollow">fabric8</a> but I get the following error:</p>

<pre><code>Expected HTTP 100 but received 400 instead, Bad Request.
</code></pre>

<p>What do I need to do to upgrade my connection to http/2?</p>

<p>I found out that this has to do with http2, because Kubernetes exec uses SPDY, the problem went away when I upgraded to curl version > 7.36 and installed nghttp2 on the server.</p>

<p>After installing curl I was able to get the response by adding some headers</p>

<p><code>curl -H "Connection: upgrade" -H "Upgrade: SPDY/3.1" {master url:port/pod/exec}</code></p>
