-
Notifications
You must be signed in to change notification settings - Fork 446
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
The latest Docker images are not pulled on tutor k8s
#662
Comments
Hey @lpm0073, Same for the following two issues from the ecommerce plugin: And the mandatory reminder :) https://docs.tutor.overhang.io/troubleshooting.html |
checking in on this. I'm still researching, and have yet to find a suitable solution. big picture it seems that the pull policy that tutor creates for k8s needs to be modified so that deployment manifests specify to always check for changes to the sha of the latest tag. however, i'm uncertain of potential side affects of this -- hence the ongoing research. |
Closing this for now. |
this is still an open issue. following some additional research, and consistent with your comments in your email from 12-may, Kubernetes does not re-pull a container as part of deployment. that being the case, tutor really should explicitly force the containers to be replaced bc otherwise a deployment (or more precisely, a re-deployment) is knowingly incomplete. as a work-around i'm going to publish this Github Action -- https://github.com/lpm0073/aws-eks-delete-deployment -- that will delete a deployment in a namespace in a cluster, if it exists. We'll get the desired effect, for now, by calling this action immediately prior to deploying with tutor. |
tutor k8s
To clarify: in your case, the latest images are not pulled because the That being said, I agree that not automatically pulling the images might be confusing for Open edX operators. Should we change the imagePullPolicy to "Always" for Tutor-managed containers? (openedx, forum, etc.) I'd like to ask others about this: @fghaas @angonz what do you think? |
I for one think the current |
I agree that using |
Well, it would certainly increase deployment times. The And, it encourages bad practices. And if we follow along the lines of several recent PRs (#622, #675), why should Tutor even concern itself with changing the pull policy when a plugin can always use |
OK then I agree this is not acceptable. @lpm0073 I suggest that you follow @fghaas recommendation to tag every image with a different version. |
Bug description
When deploying to a Kubernetes cluster using v12.2.2, and with the mfe plugin having been previously enabled and the image subsequently rebuilt, the latest version of the mfe image is not deployed into the cluster. I'm using the following commands to enable the mfe plugin:
However, the mfe pod seems to be ignored by tutor on subsequent redeployments regardless of the state of the pod relative to whatever image contains the "latest" tag. This behavior is different from that of the openedx image using the same command patterns, which will detect changes to the state of the image and will automatically replace the pod with the latest version of the image.
How to reproduce
Given the following in my AWS ECR repository, if the Kubernetes cluster is presently running a pod pulled from 13.1.5-202205120033 (the 2nd version of the image from the top) and I redeploy using the command above then I'm expecting that tutor will detect that the sha of the latest image is different from that inside the running pod and it will therefore replace the pod using the new, latest image.
Environment
Additional context
The text was updated successfully, but these errors were encountered: