<p>I would like to list pods created within 24 hours. I didn't find any kubectl commands or anything to get those. Could anyone please help me with the kubectl command to get only the pods created in last 24 hours.</p>

<p>Not the most beautiful solution but this should work (or give you an idea if you want to further improve the command)</p>
<pre><code>kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}} {{.metadata.creationTimestamp}}{{&quot;\n&quot;}}{{end}}' | awk '$2 &gt; &quot;'$(date -d 'yesterday' -Ins --utc | sed 's/+0000/Z/')'&quot; { print $1 }'
</code></pre>
<p>List all pods names and filter rows with startTime &gt; of one day.</p>
