Kubernetes - ReplicaSets and Deployments
Which of the following is the correct minimal YAML snippet to define a Deployment selector matching pods with label
app: myapp?app: myapp?matchLabels with key-value pairs matching pod labels.matchLabels with app: myapp. selector:
labels:
app: myapp uses wrong key labels. selector:
matchLabels:
name: myapp uses wrong label key name. selector:
matchExpressions:
- key: app
operator: In
values: [myapp] uses matchExpressions which is valid but more complex and not minimal.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions