<p>I want to decrypt kubectl requests to kubernetes api server (over tls) with wireshark (for <code>exec -it</code> subcommand). I found that there's <code>SSLKEYLOGFILE</code> variable that can be used by wireshark for decrypting tls packets but kubectl doesn't log tls session keys into that file. Is there any option for kubectl to log sslkeys into that file? or is there any other option for capturing and viewing exec raw network packets?</p>
<p>Thanks</p>

Babak
<ul>
<li>If you requirement is just to capture the requests betten apiserver &amp; kubectl command. add <code>--v=11</code> it will show all the requests that are happening between kubectl &amp; apiserver.</li>
</ul>
<p>Ex:</p>
<pre><code>kubectl get nodes --v=11 
</code></pre>
