<p>I download a pod's log, it has size bigger then 1G, how to shrike/truncate the pod's log? so I can download it faster?</p>

<p>PS: I need erase the old part of logs so I can free the disk space</p>

<p><code>kubectl logs --tail=1000</code> to show only the most recent 1000 lines. Adjust as needed.</p>

<blockquote>
  <p>--tail=-1: Lines of recent log file to display. Defaults to -1 with no selector, showing all log lines otherwise
  10, if a selector is provided.</p>
</blockquote>
