在 Deployment 中, spec.selector 是必需的,并且通常使用 matchLabels 来定义选择器。例如:
Deployment
spec.selector
matchLabels