• Kubernetes Submit Queue's avatar
    Merge pull request #35235 from foxish/node-controller-no-force-deletion · 49e7d640
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Node controller to not force delete pods
    
    Fixes https://github.com/kubernetes/kubernetes/issues/35145
    
    - [x] e2e tests to test Petset, RC, Job.
    - [x] Remove and cover other locations where we force-delete pods within the NodeController.
    
    **Release note**:
    
    <!--  Steps to write your release note:
    1. Use the release-note-* labels to set the release note state (if you have access) 
    2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
    -->
    
    ``` release-note
    Node controller no longer force-deletes pods from the api-server.
    
    * For StatefulSet (previously PetSet), this change means creation of replacement pods is blocked until old pods are definitely not running (indicated either by the kubelet returning from partitioned state, or deletion of the Node object, or deletion of the instance in the cloud provider, or force deletion of the pod from the api-server). This has the desirable outcome of "fencing" to prevent "split brain" scenarios.
    * For all other existing controllers except StatefulSet , this has no effect on the ability of the controller to replace pods because the controllers do not reuse pod names (they use generate-name).
    * User-written controllers that reuse names of pod objects should evaluate this change.
    ```
    49e7d640
Name
Last commit
Last update
..
BUILD Loading commit data...
cidr_allocator.go Loading commit data...
cidr_allocator_test.go Loading commit data...
cidr_set.go Loading commit data...
cidr_set_test.go Loading commit data...
controller_utils.go Loading commit data...
doc.go Loading commit data...
metrics.go Loading commit data...
nodecontroller.go Loading commit data...
nodecontroller_test.go Loading commit data...
rate_limited_queue.go Loading commit data...
rate_limited_queue_test.go Loading commit data...
test_utils.go Loading commit data...