kubernetes
kubernetes copied to clipboard
Statefulset never create pod when one of replica pod create failed
What happened?
In our k8s cluster,I create a statefulset named test-sts with replicas=3 and podManagementPolicy=Parallel. The statefulset create replica test-sts-1 failed if the pod test-sts-1 has already exists,then the statefulset never create replica test-sts-2, and never update statefulset status。
In the issue 109694, it fixed statefulset update status when replica pod create failed. [root@master2 test]# kubectl get sts,pod |grep test-sts statefulset.apps/test-sts 0/3 40m pod/test-sts-0 1/1 Running 0 40m pod/test-sts-1 1/1 Terminating 0 42m
What did you expect to happen?
I think the podManagementPolicy setting Parallel means all repilcas of statefulset is created parallel. Even though one of pod create failed, should not affect others pod creating. So, even though test-sts-1 create failed, test-sts-2 should be created.
I want to know what i think above is crrect or not???
How can we reproduce it (as minimally and precisely as possible)?
- create statefulset test-sts with replicas=3 and podManagementPolicy=Parallel;
- stop kubelet where replica test-sts-1 on;
- delete statefulset test-sts, wait for test-sts-0 and test-sts-1 deleted;
- create statefulset test-sts again;
- we can see that test-sts-2 is not created;
Anything else we need to know?
No response
Kubernetes version
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)
@chaohan1: This issue is currently awaiting triage.
If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/sig apps
GitVersion:"v1.19.4-
< 1.22 versions are out of support
/sig apps
GitVersion:"v1.19.4-
< 1.22 versions are out of support
I am sorry,what is means of 1.22 versions are out of support?
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied - After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied - After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle stale
- Mark this issue or PR as rotten with
/lifecycle rotten
- Close this issue or PR with
/close
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied - After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied - After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle rotten
- Close this issue or PR with
/close
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied - After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied - After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closed
You can:
- Reopen this issue with
/reopen
- Mark this issue as fresh with
/remove-lifecycle rotten
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
In response to this:
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied- After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied- After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closedYou can:
- Reopen this issue with
/reopen
- Mark this issue as fresh with
/remove-lifecycle rotten
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.