mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
kindnet: add nodeSelector
Currently, it is impossible to create a Node object and not have kindnet scheduled there. There is a blanket toleration for *any* taint, and no node selector. This adds a nodeSelector for it, matching the one on kube-proxy. For most users this should have no impact, as kind nodes are linux. however, for some cases where we are manually creating `Node`s like https://kwok.sigs.k8s.io/, it is useful to be able to prevent scheduling.
This commit is contained in:
@@ -91,6 +91,8 @@ spec:
|
||||
k8s-app: kindnet
|
||||
spec:
|
||||
hostNetwork: true
|
||||
nodeSelector:
|
||||
kubernetes.io/os: linux
|
||||
tolerations:
|
||||
- operator: Exists
|
||||
serviceAccountName: kindnet
|
||||
|
||||
Reference in New Issue
Block a user