Commit de2aa78
committed
fix: remove NodeName from DaemonSet pod template
DaemonSet pods should not have NodeName set in their template spec.
The DaemonSet controller manages pod placement based on nodeAffinity
and other scheduling rules. Having NodeName hardcoded was forcing all
DaemonSet pods to only run on one specific node, preventing the
DaemonSet from functioning properly.
This was causing:
- Only one pod running instead of one per matching node
- DaemonSet controller creating hundreds of pods trying to satisfy requirements
- Pods unable to schedule on other matching nodes
The fix removes the NodeName field from the pod template, allowing the
DaemonSet controller to properly manage pod placement across all nodes
that match the configured nodeAffinity.1 parent 47d005e commit de2aa78
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
0 commit comments