How does a Kubernetes Service decide which Pods belong to it?
- aIt matches Pods that were created by the same Deployment name
- bIt matches Pods running on the same Node as the Service
- cIt matches Pods whose labels satisfy its label selector✓
- dIt matches Pods listed by name in the Service's manifest
Explanation:A Service's
spec.selector is a label selector: any Pod carrying labels that match it is included as a backend, regardless of which controller created it or which Node it runs on.