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