<p>Is there an easy way to query for all deployments that use given ConfigMap as valueFrom: configMapKeyRef.</p>
<p>I need to know which deployments use my config map in order to be able to restart them after the config map changes.</p>
<p>I'm looking for something like:</p>
<p><code>kubectl get deployments --with-config-map my-config-map</code></p>

stasiekz
<p>There is no way to do it as easily as you want. However you can still get the data you want in one command by using <a href="https://kubernetes.io/docs/reference/kubectl/jsonpath/" rel="nofollow noreferrer">jsonpath</a> as the output of your kubectl command.</p>
