What are some required fields for Specs?

I am learning Kubernetes. One of the problem that I often encountered when creating specs yaml is that I don’t know what fields can and can not be placed in the file. For example, I learned that nodeSelector can be placed in PodSpec, so intuitively, DeploymentSpec has nodeSepector too, but I am not sure. I wonder if there’s any document stating:

  1. What are some Specs we can define?
  2. the required and optional fields of each spec.

You can find that in the API reference docs:

1 Like