siderolabs / kubelet

This is a repo for our docker image of the kubelet binary.
9 stars 10 forks source link

Huge kubelet image size #78

Open sergelogvinov opened 5 months ago

sergelogvinov commented 5 months ago

Hello,

We didn't notice how the size increased.

I believe that kubelet had csi in-tree a few years before. Now most of them have out-of-tree implementation. (or removed)

Probably we need to rethink included packages in this container. Or at least have a second tiny version of it.

# docker images
REPOSITORY                                          TAG               IMAGE ID       CREATED         SIZE
ghcr.io/siderolabs/kubelet                          v1.30.0           a200a086e32c   6 days ago      470MB

What do you think @frezbo ?

frezbo commented 5 months ago

I think it was same size for a long time

smira commented 5 months ago

I think cutting down dependencies is an interesting idea, but still even with CSI out-of-tree, kubelet supports mounting e.g. cephfs as volume mount directly iirc.

sergelogvinov commented 5 months ago

https://kubernetes.io/docs/concepts/storage/persistent-volumes/

Hm, i think only fc, iscsi are in-tree now.

frezbo commented 5 months ago

https://kubernetes.io/docs/concepts/storage/persistent-volumes/

Hm, i think only fc, iscsi are in-tree now.

I think ceph too, kubelet supports mounting remote ceph fs (which i think is one of the major contributor to size)