Open
Description
What would you like to be added?
k8s version is 1.28.1.
The problem handling process is as follows:
- Use STS to create a pod webswingservice.
- A CSI plug-in is customized. webswingservice depends on this plug-in.
- The first startup process is smooth.
- The node is powered off once after startup.
- After the system is powered on, the customized CSI fault is not rectified. As a result, volumes fail to be mounted to webswingservice.
- The webswingservice does not execute the probe because the volume fails to be attached. Therefore, the phase and conditions.Ready in the pod are still in the ready state.
- In this case, the pod status is not ready, but the workload is not updated. As a result, the inconsistency occurs.
- The following figure shows the proble
[root@master1 ~]# kubectl get po -A | grep webswingservice
webswingservice-0 0/2 Unknown 47h
webswingservice-1 0/2 Unknown 47h
webswingservice-2 0/2 Unknown 47h
[root@master1 ~]#
[root@master1 ~]#
[root@master1 ~]#
[root@master1 ~]# kubectl get sts -n test webswingservice
NAME ReADY AGE
webswingservice 3/3 47h
[root@master1 ~]#
Code snippet:
-
The probe is executed only when the volume is successfully attached to the SyncPod.
kubernetes/pkg/kubelet/kubelet.go
Lines 1911 to 1933 in 9d9e08b
-
The sts checks whether the pod is ready.
kubernetes/pkg/controller/statefulset/stateful_set_utils.go
Lines 461 to 464 in 9d9e08b
Why is this needed?
Is this a problem? Is there any solution?
Metadata
Metadata
Assignees
Labels
Categorizes issue or PR as related to a new feature.Denotes an issue or PR that has aged beyond stale and will be auto-closed.Indicates an issue or PR lacks a `triage/foo` label and requires one.Categorizes an issue or PR as relevant to SIG Node.Categorizes an issue or PR as relevant to SIG Storage.