Cloud API Overview > @adpt/cloud > k8s > DeploymentProps > selector
k8s.DeploymentProps.selector property
Label selector for pods.
Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.
Signature:
selector?: LabelSelector;
Remarks
With Adapt, this is optional. If not specified, adapt will pick a selector that will work with the pods it creates as part of this k8s.Deployment