<p>I want to know the Object(<code>Deployment/Statefulset/..</code>) which is using a secret. Is there a way to find this out from a secret? Is there a tool in Kubernetes community to do this?</p>

Rad4
<p>Seems like there is nothing built in, but you can use <code>kubectl</code> in conjuction with <code>jq</code> to figure it out. Here is the example for <code>deployments</code></p>
<pre><code>kubectl get deployment -o json | jq '.items[] | select(.spec.template.spec.volumes[]? | .secret.secretName==&quot;&lt;secret name&gt;&quot;) | .metadata.name'
</code></pre>
