title: How to get JsonPath for nodeSelector
body: <p>Is there a way to get JsonPath for nodeSelector key word from <code>kubectl</code> command line?</p>
  
  <p>If I run the <code>kubectl explain deployment --recursive</code> command, it will output a list of all key words: </p>
  
  <pre><code>apiVersion  &lt;string&gt;
  kind    &lt;string&gt;
  metadata    &lt;Object&gt;
     annotations  &lt;map[string]string&gt;
     clusterName  &lt;string&gt;
     creationTimestamp    &lt;string&gt;
     deletionGracePeriodSeconds   &lt;integer&gt;
     deletionTimestamp    &lt;string&gt;
     finalizers   &lt;[]string&gt;
     generateName &lt;string&gt;
     generation   &lt;integer&gt;
     initializers &lt;Object&gt;
        pending   &lt;[]Object&gt;
           name   &lt;string&gt;
        result    &lt;Object&gt;
           apiVersion &lt;string&gt;
           code   &lt;integer&gt;
           details    &lt;Object&gt;
              causes  &lt;[]Object&gt;
                 field    &lt;string&gt;
                 message  &lt;string&gt;
                 reason   &lt;string&gt;
              group   &lt;string&gt;
              kind    &lt;string&gt;
  ...
  </code></pre>
  
  <p>This list is quite long and with key word like <code>nodeSelector</code> it is hard to see that JsonPath is <code>spec.template.spec.nodeSelector</code>.</p>