Kubernetes - Scheduling
Which of the following is the correct YAML snippet to define a DaemonSet selector matching label
app: node-agent?app: node-agent?matchLabels or matchExpressions under selector.selector:
matchLabels:
app: node-agent correctly uses matchLabels with app: node-agent. selector:
labels:
app: node-agent uses invalid key labels. selector:
matchExpressions:
- key: app
operator: Exists uses matchExpressions with operator: Exists, matching presence of app key regardless of value. selector:
matchLabels:
app: node-agent
matchExpressions:
- key: role
operator: Exists mixes both but requires role label existence.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions