Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance nfd-worker placement #31

Merged
merged 3 commits into from
Sep 25, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ clean:
rm -f $(BIN)

clean-labels:
@$(shell kubectl get no -o yaml | sed -e '/^\s*nfd.node.kubernetes.io/d' -e '/^\s*feature.node.kubernetes.io/d' | kubectl replace -f -)
kubectl get no -o yaml | sed -e '/^\s*nfd.node.kubernetes.io/d' -e '/^\s*feature.node.kubernetes.io/d' | kubectl replace -f -

image:
$(IMAGE_BUILD_CMD) -t $(IMAGE_TAG) \
Expand Down
9 changes: 7 additions & 2 deletions assets/worker/0700_worker_daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ spec:
labels:
app: nfd-worker
spec:
ArangoGutierrez marked this conversation as resolved.
Show resolved Hide resolved
nodeSelector:
node-role.kubernetes.io/worker: ""
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: DoesNotExist
hostNetwork: true
serviceAccount: nfd-worker
readOnlyRootFilesystem: true
Expand Down