Skip to content

When using kubectl to delete multiple sts pods simultaneously, it gets stuck and won't exit. #1803

@yangjunmyfm192085

Description

@yangjunmyfm192085

What happened?

Use the following command to delete multiple pods. The kubectl command keeps getting stuck.

kubectl delete pod sts-pod-0 sts-pod-1 sts-pod-2 sts-pod-3 ....  --ignore-not-found=true 

What did you expect to happen?

The kubectl command deletes pods and exits normally.

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

Use the following command to delete multiple pods. The kubectl command keeps getting stuck.

kubectl delete sts-pod-0 sts-pod-1 sts-pod-2 sts-pod-3 ....  --ignore-not-found=true 

Anything else we need to know?

No response

Kubernetes version

Details
$ kubectl version
# paste output here
kubectl version
Client Version: v1.34.0

Cloud provider

Details

OS version

Details
# 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

Details

Container runtime (CRI) and version (if applicable)

Details

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

Details

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.sig/cliCategorizes an issue or PR as relevant to SIG CLI.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

Status

Needs Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions