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:
- What are some Specs we can define?
- the required and optional fields of each spec.