-
Notifications
You must be signed in to change notification settings - Fork 67
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
Explore translating latest
to a digest and possibly then other tags to improve reproducibility
#3707
Comments
Using kubectl to get digest of a containerWhen a container is started, its possible to detect from the k8s Pod's # ...
containerStatuses:
- containerID: containerd://8c82914618e37233be782768182cb322877ea61a5f21c440467d1ff18ea3005e
image: quay.io/jupyterhub/configurable-http-proxy:4.6.1
imageID: quay.io/jupyterhub/configurable-http-proxy@sha256:fd916f75415f1e7e813c5a18b34a6042a601604938ff8777b044447efb3bd819
# ... |
Exposing
|
Using k8s mutating webhooksIts possible to register a "mutating webhook" that changes the specifications of for example a k8s Pod before its getting fully registered by the k8s api-server and thereafter scheduled to a node and started. Such modification could look for containers with image tags like Complexities are:
|
Conclusion from explorationI don't think its feasable at this time to have a user server started with Unless kubernetes/kubernetes#80346 resolves to support this, I think there is no good path forward. One could consider providing automation/helpers to let JupyterHub/KubeSpawner never reference |
latest
to a digest, and possibly then other tags, to improve reproducibilitylatest
to a digest and possibly then other tags to improve reproducibility
latest
tags are practical but using them comes with a key compromise: you won't know what image version you ended up using. Maybe thelatest
tag at the time it was loaded the same as the tag2024-02-07
, but you wouldn't know.If we could get a started user server know the exact image started via a image digest, we may be able to improve reproducibility.
Tech reading
The text was updated successfully, but these errors were encountered: