-
Notifications
You must be signed in to change notification settings - Fork 39k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubelet should set readiness to true as soon as possible for containers without readiness probe defined #11234
Comments
@vishh, I am assigning this to you since you (sort of) expressed interests in today's meeting. If you are swamped with other issues, feel free to unassign! |
@nikhiljindal, @timstclair is working on separating probing from the kubelet sync period (#12866). You may want to coordinate with him. |
Removing 1.1 milestone |
I'm not sure how this would work with a temporary readiness probe. The problem with using a readiness probe is that the probe needs to get the container ID before it can probe, and it relies on the sync loop for that (currently). Also, I think you want to declare the container Ready as soon as it's ID exists, so setting up a probe doesn't seem like the right approach. |
@timstclair. we don't need to setup an actual probe, but we'd like the readiness be true if there is no probe defined. By the way, your PR which got merged today already solved this problem. |
Yes, if there is no probe defined it defaults to readiness (although I believe that was already true). If the container is created by the time syncPod exits, it should be set to ready. Otherwise, it will still need to wait for the next syncPod execution. |
This wasn't technically true until your PR landed. Before, we only probe at the beginning of SyncPod (before the container creation), and the readiness would be false for the first sync.
I think the scope of this issue is more towards setting readiness for pods that do not have probe defined, so I will go ahead and close this bug. |
Ah, got it, thanks. |
Forked from #11007
kubelet set readiness for containers when checking container health in SyncPod. For containers that are created for the first time, the readiness of the containers would only be set in the next sync (~10s or less). This applies to containers with NO readiness probe defined, so that they'd stay as not ready until the next sync. Instead, kubelet could perform an extra probe right after the container creation to make sure the readiness is set correctly as soon as possible.
The text was updated successfully, but these errors were encountered: