# Kubectl exec command fails

**URL:** <https://forums.suse.com/t/kubectl-exec-command-fails/8071>\
**Category:** General\
**Created:** [December 19, 2017, 10:16am UTC](https://forums.suse.com/t/kubectl-exec-command-fails/8071 "2017-12-19T10:16:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkaramol](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/pkaramol/32/2883_2.png) [@pkaramol](https://forums.suse.com/u/pkaramol)\
**Post date:** [December 19, 2017, 10:16am UTC](https://forums.suse.com/t/kubectl-exec-command-fails/8071/1 "2017-12-19T10:16:50Z")

</div>

I have set up a Rancher k8s environment.  
Rancher server lies behind a classic ELB with ssl termination and is accessible via e.g `https://my.rancher.server`.

I have deployed a simple pod via the command line by running

```
kubectl create -f <podfilename.yml>

```

I am then able to `get` and `describe` the pod.

However, the following command fails:

```
$ kubectl exec nodehelloworld.example.com -- ls /app
W1219 12:13:12.053543 16174 http.go:363] Error reading backend response: unexpected EOF
error: error sending request: Post https://my.rancher.server/r/projects/1a1043/kubernetes:6443/api/v1/namespaces/default/pods/nodehelloworld.example.com/exec?command=ls&command=%2Fapp&container=k8s-demo&container=k8s-demo&stderr=true&stdout=true: unexpected EOF
```

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [December 19, 2017, 3:43pm UTC](https://forums.suse.com/t/kubectl-exec-command-fails/8071/2 "2017-12-19T15:43:10Z")

</div>

([https://stackoverflow.com/questions/47884666/kubectl-exec-command-failing-with-upgrade-request-required/47890411#47890411](https://stackoverflow.com/questions/47884666/kubectl-exec-command-failing-with-upgrade-request-required/47890411#47890411))

ELB’s HTTP does not support websockets; you need to use a SSL listener -\> TCP backend and configure proxy protocol support. [http://rancher.com/docs/rancher/v1.6/en/installing-rancher/installing-server/basic-ssl-config/#elb](http://rancher.com/docs/rancher/v1.6/en/installing-rancher/installing-server/basic-ssl-config/#elb)
