title: Kubernetes Rest API - Exec (re)size
body: <p>How can I set Size (ie: cols and rows) using Rest API WebSockets Exec? API doc does not mention it. </p>
  
  <p><code>kubectl exec -v=99</code> doesn't give me a clue how it's setting size. </p>
  
  <p>I've read some people setting environment variables COLUMNS and ROWS when running <code>kubectl exec -it $container env COLUMNS=$COLUMNS LINES=$LINES TERM=$TERM bash</code>, but there is nothing documented  for exec method api in order to set variables either. </p>