<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>

rptl
<p>Answering my own question: You have to send those envs mentioned in my question as multiple command's in your query.</p>

<p>ie: to Execute bash with 80 columns and 24 rows:
<code>&amp;command=env&amp;command=COLUMNS%3D80&amp;command=ROWS%3D24&amp;command=/bin/bash</code></p>
