<p>Is there a way to find the username who submitted a job in kubernetes?</p>
<p>I've tried <code>kubectl describe jobs JOBNAME</code> and <code>kubectl get jobs JOBNAME</code>, but neither show the username who submitted the job.</p>
<p>Surprisingly, I'm not finding an answer to this question via google or SO search.</p>

David Parks
<p>When creating objects in kubernetes, for example a <code>Job</code>, it is handled by the API server.
Even though the access is usually permitted only using authentication, this does not have to be the case. And even when authentication is used, it does not mean that something like a username is available. (Think of TLS client certificates)
Besides a <code>Job</code> can be the result of another kubernetes object, for example a <code>CronJob</code>, then there is no user creating the object, but kubernetes itself.</p>
<p>You can get the full dump of data of an object using YAML output, for example <code>kubectl get job sample -o yaml</code>, there is no username recorded.</p>
<p>You can record a username yourself, though, using the metadata (label or annotation).</p>
