<p>How could I clear existing log of a specific pod?</p>

<p>So that I can get all logs since that time with <code>kubectl logs</code> next time.</p>

<p>Thanks!</p>

<p>You can't, the log rotation is generally implemented in Docker (or sometimes via logrotate on the node host). However you can use <code>kubectl logs --since-time</code> and fill in the time of your last get. If you're trying to build something to iteratively process logs automatically, probably use Fluentd to load them into some kind of database (Kafka is common for this).</p>
