How to increase the characters per line when using kubectl exec

9/7/2016

first of all any help is appreciated

I want execute a command in a container and I execute:

kubectl exec -ti busybox bash 

but if I input about 70 characters in bash and then I get truncated output and line broken anyway lead to unreadable.

is there a way to increase the characters per line when using kubectl exec?

Environment (also see manifests for more detailed info):

Centos 7.0.1406 

Kubernetes: 1.2.0 

etcd: 2.3.7 

flannel: 0.5.3 

docker:1.10.3

Thanks a lot for any suggestions.

-- lufeng
kubectl
kubernetes

1 Answer

9/8/2016

This will be supported in the upcoming Kubernetes 1.4 release (if you're interested, see its fix).

-- janetkuo
Source: StackOverflow