Skip to content

When I delete a node and then create a node with the same name, the pod on the node is not deleted and rebuilt. #132182

Open
@boymucheng

Description

@boymucheng

What happened?

When I delete a node and then create a node with the same name, the daemonset pod on the node is not deleted and rebuilt.
when the node is deleted, kcm PodGC will cleanup the pod, but it work after 60s or 80s, it's too long.In the time, if I create the same name node, the deamonset pod will remain the same

What did you expect to happen?

daemonset pod is deleted when the node is deleted, and recreate when the node is created

How can we reproduce it (as minimally and precisely as possible)?

  1. create daemonset
  2. delete node
  3. Create a node with the same name

Anything else we need to know?

No response

Kubernetes version

1.32 ```console $ kubectl version # paste output here ```

Cloud provider

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.needs-sigIndicates an issue or PR lacks a `sig/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions