-
feat(supervisor): project-based scheduling affinity for image cache locality (#2995)
发布于
2026-02-04 13:39:47 +00:00 | 1177 次提交 在此版本后已推送到 mainAdds optional pod affinity so pods from the same project prefer
scheduling on the same node. This can help improve image cache hit
rates; subsequent pods benefit from already-pulled image layers,
reducing startup time.Complements the built-in ImageLocality scheduler plugin by helping
during burst scheduling scenarios. Pod affinity sees scheduled pods
immediately, while ImageLocality only sees images after they're fully
pulled.Configuration:
KUBERNETES_PROJECT_AFFINITY_ENABLED- Enable/disable (default:
false)KUBERNETES_PROJECT_AFFINITY_WEIGHT- Scheduler weight 1-100
(default: 50)KUBERNETES_PROJECT_AFFINITY_TOPOLOGY_KEY- Topology key (default:
kubernetes.io/hostname)
Uses soft (preferred) affinity so pods always schedule even if preferred
node is full.
下载附件