kubernetes: interactive run "Unrecognized input header"
Something is not happy taking extra args. @ncdc
thockin@freakshow kubernetes master /$ kubectl run date -i --tty --restart=Never --image=busybox --; kubectl delete pod date
Waiting for pod default/date to be running, status is Pending, pod ready: false
/ #
/ # pod "date" deleted
thockin@freakshow kubernetes master /$ kubectl run date -i --tty --restart=Never --image=busybox -- /bin/sh; kubectl delete pod date
Waiting for pod default/date to be running, status is Pending, pod ready: false
/ # /bin/date
Mon Nov 2 16:19:56 UTC 2015
/ # pod "date" deleted
thockin@freakshow kubernetes master /$ kubectl run date -i --tty --restart=Never --image=busybox -- /bin/date; kubectl delete pod date
Waiting for pod default/date to be running, status is Pending, pod ready: false
Error attaching, falling back to logs: error executing remote command: Error executing command in container: container not found ("date")
Error from server: Internal error occurred: Unrecognized input header
pod "date" deleted
thockin@freakshow kubernetes master /$ kubectl run date -i --tty --restart=Never --image=busybox -- /bin/sh -c /bin/date; kubectl delete pod date
Waiting for pod default/date to be running, status is Pending, pod ready: false
Error attaching, falling back to logs: error executing remote command: Error executing command in container: container not found ("date")
Error from server: Internal error occurred: Unrecognized input header
pod "date" deleted
thockin@freakshow kubernetes master /$ kubectl run date -i --tty --restart=Never --image=busybox -- -c /bin/date; kubectl delete pod date
Waiting for pod default/date to be running, status is Pending, pod ready: false
Error from server: Internal error occurred: Unrecognized input header
pod "date" deleted
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 1
- Comments: 28 (21 by maintainers)
kubectl runwith a short running command still doesn’t work for me with 1.2.0 final:With
--restart=Neverthe command ends withUnrecognized input headerAlso the job doesn’t get deleted but the pod does.
Without the
--restart=Neverthe command hangs:I’m using the Docker single node setup with Docker Machine, versions:
I’m still seeing this problem with kubernetes / kubectl 1.4.4 and docker 1.11.2.
there seems kubernetes only support container TTY=false. as in code, it’s hard code with RawTerminal. sopts := StreamOptions{ OutputStream: stdout, ErrorStream: stderr, RawTerminal: false, }