• Kubernetes Submit Queue's avatar
    Merge pull request #63223 from k82cn/kep548_working · a0a4cc73
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 64057, 63223, 64346, 64562, 64408). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Schedule DaemonSet Pods in scheduler.
    Signed-off-by: 's avatarDa K. Ma <klaus1982.cn@gmail.com>
    
    **What this PR does / why we need it**:
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    part of #59194
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    `ScheduleDaemonSetPods` is an alpha feature (since v1.11) that causes DaemonSet Pods
    to be scheduler by default scheduler, instead of Daemonset controller. When it is enabled,
    the `NodeAffinity` term (instead of `.spec.nodeName`) is added to the DaemonSet Pods;
    this enables the default scheduler to bind the Pod to the target host. If node affinity
    of DaemonSet Pod already exists, it will be replaced.
    
    DaemonSet controller will only perform these operations when creating DaemonSet Pods;
    and those operations will only modify the Pods of DaemonSet, no changes are made to the
    `.spec.template` of DaemonSet.
    ```
    a0a4cc73
daemon_controller.go 54.8 KB