Kubernetes - Scheduling
Which of the following is the correct way to specify a DaemonSet selector in the YAML manifest?
matchLabels or matchExpressions under selector.matchLabels correctly with key-value pairs. selector:
labels:
app: my-daemon is invalid because it uses labels instead of matchLabels. selector:
matchExpressions:
- key: app
operator: Equals
values: [my-daemon] has wrong operator case and structure. selector:
matchLabels:
app: my-daemon
matchExpressions:
- key: tier
operator: In
values: [backend] mixes both but DaemonSet selector only supports one selector type.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions