This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 549
K8S Pod keep waiting in creating container, such as ErrImagePull #3572
Labels
Milestone
Comments
See more details in microsoft/frameworkcontroller#14 (comment) |
We should at least do some precheck in the init container to avoid unnecessary pending states. |
@yqwang-ms how frequent will this happen? do we have an expire time for the waiting? |
This depends on whether user use a not existing image. K8S does not provide a way for expire it. |
precheck the image sounds good. |
54 tasks
Need to check ACR image in runtime. Refer to #3993 |
scarlett2018
changed the title
K8S Pod keep waiting in creating container, such as ErrImagePull
P1 - K8S Pod keep waiting in creating container, such as ErrImagePull
Dec 30, 2019
Tracked in K8S kubernetes/kubernetes#87278 |
Merged
scarlett2018
changed the title
P1 - K8S Pod keep waiting in creating container, such as ErrImagePull
K8S Pod keep waiting in creating container, such as ErrImagePull
May 28, 2020
close as we now expose relevant events to end users. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If image cannot be pulled, K8S will keep the Pod in Pending state (without complete or retry it) and does not respect Pod restartPolicy, so FrameworkController respect the Pod state, i.e. Pending, thus the whole Framework state is AttemptPreparing by design.
K8S still cannot provide a Pod spec option to let user specify if fail the pod when image not found.
So this issue is more like a K8S new feature request, but we need to somehow mitigate it, such as:
Expose Reason:
Detect and early fail it:
However, these cannot resolve all other errors that K8S keep creating container. Such as:
Submit a Pod with workingDir to be a file.
Previous meeting notes:
The text was updated successfully, but these errors were encountered: