<p>When I do <code>kubectl top pods</code> I only see NAME, CPU and MEMORY.</p>
<pre><code>NAME                                                 CPU(cores)   MEMORY(bytes)   
bbox-inference-falcon-79dc678d8c-2fq9b               4m           1272Mi          
bbox-inference-falcon-79dc678d8c-2nfnk               3m           1503Mi          
bbox-inference-falcon-79dc678d8c-4579l               27m          1303Mi          
bbox-inference-falcon-79dc678d8c-4kjsz               3m           1032Mi          
bbox-inference-falcon-79dc678d8c-4mvxd               3m           1258Mi          
bbox-inference-falcon-79dc678d8c-4pw2t               3m           1115Mi 
</code></pre>
<p>I'd like to know who ran these jobs but <code>kubectl describe pod pod_name</code> doesn't give me the information.</p>
<p>Is there any way to do it?</p>

aerin
<p>You can use Kubernetes Auditing: <a href="https://kubernetes.io/docs/tasks/debug-application-cluster/audit/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/debug-application-cluster/audit/</a></p>
<p>Set the Level to Metadata</p>
<pre><code>apiVersion: audit.k8s.io/v1beta1
kind: Policy
rules:
 — level: Metadata
</code></pre>
<p>Metadata will log: user, resource_name and timestamp</p>
