-
Notifications
You must be signed in to change notification settings - Fork 612
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
PoC: Implement optional host proxy for lima cache #2367
base: master
Are you sure you want to change the base?
Conversation
So far, so good.
sudo http_proxy=http://host.lima.internal:47979 https_proxy=http://host.lima.internal:47979 apt update kubeadm config images list Must use Using nerdctl avoids these issue with |
|
Needs better error handling, since those redirects seem to be temporary (missing the remap of apt-cacher-ng) INFO: resp 307 Temporary Redirect |
This comment was marked as resolved.
This comment was marked as resolved.
Implements both http_proxy and https_proxy (with mitm cert) Does not actually cache anything, just verbose INFO logging. Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Implements both
http_proxy
andhttps_proxy
(with mitm cert)Does not actually cache anything (yet), just verbose INFO logging.The use case is to use the regular $LIMA_CACHE also for apt/ctr.
But instead of doing custom mirrors, use a brute force http proxy.
TODO: Add some more options, for configuring apt and containerd
The target is to be able to cache the packages and images for k8s
Tested with curl, and with ctr by using a custom certs.d/docker.io
And similar also for https://registry.k8s.io (and https://pkgs.k8s.io)
https://github.com/containerd/nerdctl/blob/main/docs/registry.md
/etc/containerd
/etc/containerd/certs.d/_default/hosts.toml
/etc/apt/apt.conf.d/50proxy.conf
Acquire::https::CaInfo "/path/to/proxy.crt";