-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Lease-lock airgap images to prevent Kubelet GC from deleting them #3193
Comments
fix k3s-io/k3s#3193 porting from k3s upstream pr: k3s-io/k3s#3464 Signed-off-by: Deshi Xiao <xiaods@gmail.com>
fix k3s-io/k3s#3193 porting from k3s upstream pr: k3s-io/k3s#3464 Signed-off-by: Deshi Xiao <xiaods@gmail.com>
In previous versions, we generally didn't see anything using |
A new PR has merged that further addresses this issue #3755 |
I see this working in an airgap environment using tarball install method. I used boltbrowser to navigate the directory and see the leases. |
k3s version v1.23.3+k3s1 (5fb370e) My docker.io/rancher/mirrored-pause:3.6 is still deleted (causing classical 'pending' POD because k3s cannot fetch docker.io/rancher/mirrored-pause:3.6 in an air gap environment. Doing a /var/lib/rancher/k3s/agent/containerd/containerd.log extract:
returns nothing |
Can we re-open this? This is still happening on at least 1.23.14+k3s1. |
@sdemura v1.23 is EOL now. If you're able to reproduce on a more current version (v1.24+) then will you actually create a new issue with the details and reference this one? |
We want to do what was discussed at #2961 (comment):
This will prevent containerd from deleting any images from the image store that were imported from airgap tarballs during the most recent startup. Images pulled by the kubelet, and images that were previously found in tarballs but are not any longer, may be garbage-collected as usual.
We may also want to hold a lease on any images that are pre-pulled due to being found in .txt files in the agent/images directory.
The text was updated successfully, but these errors were encountered: