stargz-snapshotter
stargz-snapshotter copied to clipboard
3 error(s) occurred gzip: invalid header* legacy: failed to get footer gzip reader: gzip invalid header
when use stargz snapshotter to pull private images on Kubernetes , it don't work, and just pull all layers.
i use kubectl create secret regcred,
then use CRI-based authentication according to https://github.com/containerd/stargz-snapshotter/blob/main/docs/overview.md
test_pol.yaml:
the registry.baidubce.com/stargz-work/wordpress-stargz-opt:latest
is stagz image
/etc/containerd/conf.toml
/etc/containerd-starhz-grpc/config.toml
systemctl status stargz-snapshotter.service
systemctl status stargz-snapshotter.service
less /var/log/message
CRI-based authentication
You need to do the following as well https://github.com/containerd/stargz-snapshotter/blob/v0.11.4/docs/overview.md#cri-based-authentication
You must specify --image-service-endpoint=unix:///run/containerd-stargz-grpc/containerd-stargz-grpc.sock option to kubelet.
About https://github.com/containerd/stargz-snapshotter/issues/742#issuecomment-1102185315 , the following look like non-estargz images.
registry.baidubce.com/cce-public/pause:3.1 registry.baidubce.com/cce-public/cce-cni:v1.3.3
@yueyuep Is this still an issue?
Feel free to reopen this with additional info if it's still an issue.