fix(gpu-operator): scope compat DaemonSet to GPU nodes
Restrict the nvidia-driver-compat DaemonSet to nodes labelled nvidia.com/gpu.present=true (NFD/GPU Operator label). Without the nodeSelector it was scheduling onto every node — control-plane and CPU-only workers included — burning a privileged pod slot per host for no benefit. Add resource requests and limits to the init and pause containers so the DaemonSet stays within control-plane budget on small clusters. Signed-off-by: Arsolitt <arsolitt@gmail.com>
This commit is contained in:
parent
4e8731b588
commit
0e20159bd9
1 changed files with 22 additions and 0 deletions
|
|
@ -27,6 +27,14 @@ spec:
|
|||
spec:
|
||||
hostPID: true
|
||||
priorityClassName: system-node-critical
|
||||
# Restrict to GPU nodes only. Without this the DaemonSet schedules onto
|
||||
# every node (including control-plane and CPU-only workers) and burns
|
||||
# resources on hosts where the compat tree is meaningless.
|
||||
# The label is published by Node Feature Discovery / GPU Operator's NFD
|
||||
# subchart; if NFD is disabled, replace this with whatever label your
|
||||
# cluster uses to mark GPU hosts.
|
||||
nodeSelector:
|
||||
nvidia.com/gpu.present: "true"
|
||||
tolerations:
|
||||
- operator: Exists
|
||||
initContainers:
|
||||
|
|
@ -60,12 +68,26 @@ spec:
|
|||
echo "Done"
|
||||
securityContext:
|
||||
privileged: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 16Mi
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 64Mi
|
||||
volumeMounts:
|
||||
- name: host-root
|
||||
mountPath: /host
|
||||
containers:
|
||||
- name: pause
|
||||
image: registry.k8s.io/pause:3.10
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 8Mi
|
||||
limits:
|
||||
cpu: 50m
|
||||
memory: 16Mi
|
||||
volumes:
|
||||
- name: host-root
|
||||
hostPath:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue